code: def inherit_docs_for_methods(class_, attrs):
      """
      Class methods inherit documentation from the parent
      classes in case if methods doesn't have it.
  
      Parameters
      ----------
      class_ : object
      attrs : dict
          Class attributes.
      """
      for attrname, attrvalue in attrs.items():
          if not isfunction(attrvalue) or has_docs(attrvalue):
              continue
  
          for parent_class in class_.__mro__:
              if not hasattr(parent_class, attrname):
                  continue
  
              parent_attrvalue = getattr(parent_class, attrname)
              if has_docs(parent_attrvalue):
                  attrvalue.__doc__ = parent_attrvalue.__doc__
                  break
  
imports: import re
  from inspect import isfunction
  from abc import ABCMeta
  from six import with_metaclass
  from neupy.utils import AttributeKeyDict
label_desc: Use image node_id 8 for calling a global function with example usage: inherit_docs_for_methods(class_, attrs) without return types