You can set `extract.__doc__` to the other function's `__doc__` at the end of the definition.