code: def mangle_signature(app, what, name, obj, options, sig, retann):
      # Do not try to inspect classes that don't define `__init__`
      if inspect.isclass(obj) and (
          not hasattr(obj, "__init__")
          or "initializes x; see " in pydoc.getdoc(obj.__init__)
      ):
          return "", ""
  
      if not (
          isinstance(obj, collections.Callable)
          or hasattr(obj, "__argspec_is_invalid_")
      ):
          return
  
      if not hasattr(obj, "__doc__"):
          return
      doc = SphinxDocString(pydoc.getdoc(obj))
      sig = doc["Signature"] or getattr(obj, "__text_signature__", None)
      if sig:
          sig = re.sub("^[^(]*", "", sig)
          return sig, ""
  
imports: import re
  import pydoc
  import inspect
  import collections
  import hashlib
  from docutils.nodes import citation, Text
  import sphinx
  from sphinx.addnodes import pending_xref, desc_content
  from .docscrape_sphinx import get_doc_object, SphinxDocString
  from .None import __version__
  from docutils.statemachine import ViewList
  from sphinx.domains.c import CDomain
  from sphinx.domains.python import PythonDomain
label_desc: Use image node_id 5 for calling a global function with example usage: mangle_signature(app, what, name, obj, options, sig, retann) and returns: str,  str, sig,  str