code: def _copydoc(fromfunc, sep="\n"):
      """
      Decorator: Copy the docstring of `fromfunc`
      """
  
      def _decorator(func):
          sourcedoc = fromfunc.__doc__
          if func.__doc__ == None:
              func.__doc__ = sourcedoc
          else:
              func.__doc__ = sep.join([sourcedoc, func.__doc__])
          return func
  
      return _decorator
  
imports: import abc
  import random
  import threading
label_desc: Use image node_id 3 for calling a global function with example usage: _copydoc(fromfunc, sep) and returns: _decorator, func