docstr: Recursively include inherited methods from the base classes.
docstr_tok: ["Recursively","include","inherited","methods","from","the","base","classes","."]
code: def include_inherited_methods(
      self,
      modules: t.Iterable[docspec.Module],
      classes: t.Dict[str, docspec.Class],
  ) -> t.Iterable[docspec.Module]:
      """
      Recursively include inherited methods from the base classes.
      """
      modules = list(modules)
      for module in modules:
          for cls in module.members:
              if isinstance(cls, docspec.Class):
                  self.include_methods_for_class(cls, classes)
  
      return modules
  
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 2 for calling the CustomPythonLoader obj's underlying member method code with example usage: obj.include_inherited_methods(modules, classes) and returns: modules