code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_config_value("viewcode_import", None, "")
      app.add_config_value("viewcode_enable_epub", False, "")
      app.add_config_value("viewcode_follow_imported_members", True, "")
      app.add_config_value("viewcode_line_numbers", False, "env", bool)
      app.connect("doctree-read", doctree_read)
      app.connect("env-merge-info", env_merge_info)
      app.connect("env-purge-doc", env_purge_doc)
      app.connect("html-collect-pages", collect_pages)
      # app.add_config_value('viewcode_include_modules', [], 'env')
      # app.add_config_value('viewcode_exclude_modules', [], 'env')
      app.add_event("viewcode-find-source")
      app.add_event("viewcode-follow-imported")
      app.add_post_transform(ViewcodeAnchorTransform)
      return {
          "version": sphinx.__display_version__,
          "env_version": 1,
          "parallel_read_safe": True,
      }
  
imports: from __future__ import annotations
  import posixpath
  import traceback
  from importlib import import_module
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.nodes import Element, Node
  import sphinx
  from sphinx import addnodes
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.locale import _, __
  from sphinx.pycode import ModuleAnalyzer
  from sphinx.transforms.post_transforms import SphinxPostTransform
  from sphinx.util import logging
  from sphinx.util.display import status_iterator
  from sphinx.util.nodes import make_refnode
label_desc: Use image node_id 9 for calling a global function with example usage: setup(app) and returns: dict