code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_domain(CitationDomain)
      app.add_transform(CitationDefinitionTransform)
      app.add_transform(CitationReferenceTransform)
  
      return {
          "version": "builtin",
          "env_version": 1,
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from sphinx.addnodes import pending_xref
  from sphinx.domains import Domain
  from sphinx.locale import __
  from sphinx.transforms import SphinxTransform
  from sphinx.util import logging
  from sphinx.util.nodes import copy_source_info, make_refnode
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: dict