code: def copy_base_doc_to_subclass_doc(subclass):
      """Use the docstring from a parent class methods in derived class.
  
      The docstring of a parent class method is prepended to the
      docstring of the method of the class wrapped by this decorator.
  
      Parameters
      ----------
      subclass : wrapped class
          Class to copy the docstring to.
  
      Returns
      -------
      subclass : Derived class
          The decorated class with copied docstrings.
      """
      ancestors = subclass.mro()[1:-1]
  
      for source in ancestors:
          methodList = [
              method
              for method in dir(source)
              if callable(getattr(source, method))
          ]
          for method_name in methodList:
              # discard private methods
              if method_name[0] == "_":
                  continue
              base_method = getattr(source, method_name)
              sub_method = getattr(subclass, method_name)
              if base_method is not None and sub_method is not None:
                  doc = base_method.__doc__
                  if sub_method.__doc__ is not None:
                      doc += "\n" + sub_method.__doc__
                  sub_method.__doc__ = doc
  
      return subclass
  
imports: import inspect
  import os
  import os.path
  import re
  import sys
  import webbrowser
  from copy import deepcopy
  from decorator import FunctionMaker
  from ..defaults import HEAD_SIZE_DEFAULT
  from ._bunch import BunchConst
label_desc: Use image node_id 5 for calling a global function with example usage: copy_base_doc_to_subclass_doc(subclass) and returns: subclass