code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_config_value(
          "autosectionlabel_prefix_document", False, "env"
      )
      app.add_config_value("autosectionlabel_maxdepth", None, "env")
      app.connect("doctree-read", register_sections_as_label)
  
      return {
          "version": sphinx.__display_version__,
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
file_path: sphinx/sphinx/ext/autosectionlabel.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  import sphinx
  from sphinx.domains.std import StandardDomain
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.nodes import clean_astext
label_desc: Use image node_id 3 for calling a global function with example usage: setup(app) and returns: dict