code: def main(argv: Sequence[str] = (), /) -> None:
      locale.setlocale(locale.LC_ALL, "")
      sphinx.locale.init_console()
  
      app = DummyApplication(sphinx.locale.get_translator())
      logging.setup(app, sys.stdout, sys.stderr)  # type: ignore[arg-type]
      setup_documenters(app)
      args = get_parser().parse_args(argv or sys.argv[1:])
  
      if args.templates:
          app.config.templates_path.append(path.abspath(args.templates))
      app.config.autosummary_ignore_module_all = (  # type: ignore[attr-defined]
          not args.respect_module_all
      )
  
      generate_autosummary_docs(
          args.source_file,
          args.output_dir,
          "." + args.suffix,
          imported_members=args.imported_members,
          app=app,
      )
  
imports: from __future__ import annotations
  import argparse
  import importlib
  import inspect
  import locale
  import os
  import pkgutil
  import pydoc
  import re
  import sys
  from os import path
  from typing import TYPE_CHECKING, Any, NamedTuple
  from jinja2 import TemplateNotFound
  from jinja2.sandbox import SandboxedEnvironment
  import sphinx.locale
  from sphinx import __display_version__, package_dir
  from sphinx.builders import Builder
  from sphinx.config import Config
  from sphinx.ext.autodoc.importer import import_module
  from sphinx.ext.autosummary import ImportExceptionGroup, get_documenter, import_by_name, import_ivar_by_name
  from sphinx.locale import __
  from sphinx.pycode import ModuleAnalyzer, PycodeError
  from sphinx.registry import SphinxComponentRegistry
  from sphinx.util import logging, rst
  from sphinx.util.inspect import getall, safe_getattr
  from sphinx.util.osutil import ensuredir
  from sphinx.util.template import SphinxTemplateLoader
label_desc: Use image node_id 18 for calling a global function with example usage: main() without return types