docstr: Include all methods inherited from base classes to the class.
docstr_tok: ["Include","all","methods","inherited","from","base","classes","to","the","class","."]
code: def include_methods_for_class(
      self, cls: docspec.Class, classes: t.Dict[str, docspec.Class]
  ):
      """
      Include all methods inherited from base classes to the class.
      """
      if cls.bases is None:
          return
      for base in cls.bases:
          if base in classes:
              base_cls = classes[base]
              self.include_methods_for_class(base_cls, classes)
  
              for member in base_cls.members:
                  if isinstance(member, docspec.Function) and not any(
                      m.name == member.name for m in cls.members
                  ):
                      new_member = copy.deepcopy(member)
                      new_member.parent = cls
                      cls.members.append(new_member)
  
file_path: haystack/docs/pydoc/loaders.py
imports: import copy
  import typing
  import docspec
  from pydoc_markdown.interfaces import Context
  from pydoc_markdown.contrib.loaders.python import PythonLoader
label_desc: Use image node_id 3 for calling the CustomPythonLoader obj's underlying member method code with example usage: obj.include_methods_for_class(cls, classes) without return types