code: def setup(app: Sphinx) -> dict[str, Any]:
      app.setup_extension("sphinx.builders.html")
  
      app.add_builder(SingleFileHTMLBuilder)
      app.add_config_value(
          "singlehtml_sidebars", lambda self: self.html_sidebars, "html"
      )
  
      return {
          "version": "builtin",
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
imports: from __future__ import annotations
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.environment.adapters.toctree import global_toctree_for_doc
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.console import darkgreen
  from sphinx.util.display import progress_message
  from sphinx.util.nodes import inline_all_toctrees
label_desc: Use image node_id 1 for calling a global function with example usage: setup(app) and returns: dict