code: def render_module(modname: str, qualname: str, app):
      parent = importlib.import_module(modname)
      obj = getattr(parent, qualname)
      template = ag.AutosummaryRenderer(app)
      template_name = "flax_module"
      imported_members = False
      recursive = False
      context = {}
      return generate_autosummary_content(
          qualname,
          obj,
          parent,
          template,
          template_name,
          imported_members,
          app,
          recursive,
          context,
          modname,
          qualname,
      )
  
file_path: flax/docs/_ext/flax_module.py
imports: import importlib
  import sphinx
  import sphinx.ext.autosummary.generate
  from docutils import nodes
  from docutils.parsers.rst import directives
  from docutils.statemachine import ViewList
  from sphinx.util.docutils import SphinxDirective
  from docs.conf_sphinx_patch import generate_autosummary_content
label_desc: Use image node_id 1 for calling a global function with example usage: render_module(modname, qualname, app) and returns: generate_autosummary_content