code: def docfrom(base):
      
      def setdoc(func):
          func.__doc__ = (getattr(base, '__doc__') or '') + (func.__doc__ or '')
          return func
      return setdoc
docs: Decorator to set a function's docstring from another function.