code: def test_autogen(rootdir, tmp_path):
      with chdir(rootdir / "test-templating"):
          args = [
              "-o",
              str(tmp_path),
              "-t",
              ".",
              "autosummary_templating.txt",
          ]
          autogen_main(args)
          assert (
              tmp_path / "sphinx.application.TemplateBridge.rst"
          ).exists()
  
imports: import sys
  from io import StringIO
  from pathlib import Path
  from unittest.mock import Mock, patch
  import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.ext.autosummary import autosummary_table, autosummary_toc, extract_summary, import_by_name, mangle_signature
  from sphinx.ext.autosummary.generate import AutosummaryEntry, generate_autosummary_content, generate_autosummary_docs
  from sphinx.ext.autosummary.generate import main
  from sphinx.testing.util import assert_node, etree_parse
  from sphinx.util.docutils import new_document
label_desc: Use image node_id 28 for calling a global function with example usage: test_autogen(rootdir, tmp_path) without return types