def doc_wraps(func):
    def _(func2):
        func2.__doc__ = func.__doc__.replace('>>>', '>>').replace('...', '..')
        return func2
    return _
Copy docstring from one function to another
dataset/ETHPy150Open dask/dask/dask/array/random.py/doc_wraps