code: def setup(app: "sphinx.application.Sphinx") -> None:
      app.add_crossref_type(
          "fixture",
          "fixture",
          objname="built-in fixture",
          indextemplate="pair: %s; fixture",
      )
  
      app.add_object_type(
          "confval",
          "confval",
          objname="configuration value",
          indextemplate="pair: %s; configuration value",
      )
  
      app.add_object_type(
          "globalvar",
          "globalvar",
          objname="global variable interpreted by pytest",
          indextemplate="pair: %s; global variable interpreted by pytest",
      )
  
      app.add_crossref_type(
          directivename="hook",
          rolename="hook",
          objname="pytest hook",
          indextemplate="pair: %s; hook",
      )
  
      configure_logging(app)
  
      # legacypath.py monkey-patches pytest.Testdir in. Import the file so
      # that autodoc can discover references to it.
      import _pytest.legacypath
  
file_path: pytest/doc/en/conf.py
imports: import os
  import shutil
  import sys
  from textwrap import dedent
  from typing import TYPE_CHECKING
  from _pytest import __version__
label_desc: Use image node_id 2 for calling a global function with example usage: setup(app) without return types