code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_domain(MathDomain)
      app.add_role("eq", MathReferenceRole(warn_dangling=True))
  
      return {
          "version": "builtin",
          "env_version": 2,
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from docutils.nodes import Element, Node, make_id, system_message
  from sphinx.domains import Domain
  from sphinx.locale import __
  from sphinx.roles import XRefRole
  from sphinx.util import logging
  from sphinx.util.nodes import make_refnode
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: dict