code: def copydoc(fromfunc, sep="\n"):
      
      def _decorator(func):
          sourcedoc = fromfunc.__doc__
          if func.__doc__ is None:
              func.__doc__ = sourcedoc
          else:
              func.__doc__ = sep.join([sourcedoc, func.__doc__])
          return func
      return _decorator
docs: Decorator: Copy the docstring of `fromfunc`