code: def _patch_domain_python():
      try:
          from numpy.typing import __all__ as numpy_types
      except ImportError:
          numpy_types = []
      try:
          from mpi4py.typing import __all__ as mpi4py_types
      except ImportError:
          mpi4py_types = []
  
      numpy_types = set(numpy_types)
      mpi4py_types = set(mpi4py_types)
      for name in numpy_types:
          autodoc_type_aliases[name] = f"~numpy.typing.{name}"
      for name in mpi4py_types:
          autodoc_type_aliases[name] = f"~mpi4py.typing.{name}"
  
      from sphinx.domains.python import PythonDomain
  
      PythonDomain.object_types["data"].roles += ("class",)
  
file_path: mpi4py/docs/source/conf.py
imports: import os
  import sys
  import typing
  import datetime
  import importlib
label_desc: Use image node_id 3 for calling a global function with example usage: _patch_domain_python() without return types