code: def setup(app: Sphinx) -> dict[str, Any]:
      app.add_builder(TexinfoBuilder)
  
      app.add_config_value(
          "texinfo_documents", default_texinfo_documents, ""
      )
      app.add_config_value("texinfo_appendices", [], "")
      app.add_config_value("texinfo_elements", {}, "")
      app.add_config_value("texinfo_domain_indices", True, "", list)
      app.add_config_value("texinfo_show_urls", "footnote", "")
      app.add_config_value("texinfo_no_detailmenu", False, "")
      app.add_config_value("texinfo_cross_references", True, "")
  
      return {
          "version": "builtin",
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
imports: from __future__ import annotations
  import os
  import warnings
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from docutils.frontend import OptionParser
  from docutils.io import FileOutput
  from sphinx import addnodes, package_dir
  from sphinx.builders import Builder
  from sphinx.environment.adapters.asset import ImageAdapter
  from sphinx.errors import NoUri
  from sphinx.locale import _, __
  from sphinx.util import logging
  from sphinx.util.console import darkgreen
  from sphinx.util.display import progress_message, status_iterator
  from sphinx.util.docutils import new_document
  from sphinx.util.fileutil import copy_asset_file
  from sphinx.util.nodes import inline_all_toctrees
  from sphinx.util.osutil import SEP, ensuredir, make_filename_from_project
  from sphinx.writers.texinfo import TexinfoTranslator, TexinfoWriter
label_desc: Use image node_id 2 for calling a global function with example usage: setup(app) and returns: dict