code: def __init__(self, *a, **kw):
      super().__init__(*a, **kw)
      self.directives = dict(self.directives)
      function_directive = self.directives["function"]
      self.directives["function"] = wrap_mangling_directive(
          function_directive
      )
  
file_path: scipy/doc/source/scipyoptdoc.py
imports: import sys
  import sphinx
  import inspect
  import textwrap
  import pydoc
  from numpydoc.numpydoc import mangle_docstrings
  from docutils.statemachine import ViewList
  from sphinx.domains.python import PythonDomain
  from scipy._lib._util import getfullargspec_no_self
label_desc: Use image node_id 1 to create a new ScipyOptimizeInterfaceDomain object from inherited base classes: PythonDomain with example: obj = ScipyOptimizeInterfaceDomain()