code: def _process_docstring(app, what, name, obj, options, lines):
      # type: (Sphinx, unicode, unicode, Any, Any, List[unicode]) -> None
      """Process the docstring for a given python object.
      Called when autodoc has read and processed a docstring. `lines` is a list
      of docstring lines that `_process_docstring` modifies in place to change
      what Sphinx outputs.
      The following settings in conf.py control what styles of docstrings will
      be parsed:
      * ``napoleon_google_docstring`` -- parse Google style docstrings
      * ``napoleon_numpy_docstring`` -- parse NumPy style docstrings
      Parameters
      ----------
      app : sphinx.application.Sphinx
          Application object representing the Sphinx process.
      what : str
          A string specifying the type of the object to which the docstring
          belongs. Valid values: "module", "class", "exception", "function",
          "method", "attribute".
      name : str
          The fully qualified name of the object.
      obj : module, class, exception, function, method, or attribute
          The object to which the docstring belongs.
      options : sphinx.ext.autodoc.Options
          The options given to the directive: an object with attributes
          inherited_members, undoc_members, show_inheritance and noindex that
          are True if the flag option of same name was given to the auto
          directive.
      lines : list of str
          The lines of the docstring, see above.
          .. note:: `lines` is modified *in place*
      """
      result_lines = lines
      # Parse Nipype Interfaces
      if what == "class" and issubclass(obj, BaseInterface):
          result_lines[:] = InterfaceDocstring(
              result_lines, app.config, app, what, name, obj, options
          ).lines()
  
      result_lines = NipypeDocstring(
          result_lines, app.config, app, what, name, obj, options
      ).lines()
      lines[:] = result_lines[:]
  
file_path: nipype/nipype/sphinxext/apidoc/__init__.py
imports: import re
  from sphinx.ext.napoleon import Config, _patch_python_domain, _skip_member
  from ...None import __version__
  from ...interfaces.base import BaseInterface, TraitedSpec
  from .docstring import NipypeDocstring, InterfaceDocstring
label_desc: Use image node_id 2 for calling a global function with example usage: _process_docstring(app, what, name, obj, options, lines) without return types