code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_transform(SphinxDanglingReferences)
      app.add_transform(SphinxDomains)
  
      return {
          "version": "builtin",
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
file_path: sphinx/sphinx/transforms/references.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from docutils.transforms.references import DanglingReferences
  from sphinx.transforms import SphinxTransform
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: dict