code: def run(state_machine):
      def render_symbol(sym, ignore_variant=False):
          if ignore_variant and sym not in (
              r"\varnothing",
              r"\varlrtriangle",
          ):
              sym = sym.replace(r"\var", "\\")
          if sym.startswith("\\"):
              sym = sym.lstrip("\\")
              if sym not in (
                  _mathtext.Parser._overunder_functions
                  | _mathtext.Parser._function_names
              ):
                  sym = chr(_mathtext_data.tex2uni[sym])
          return (
              f"\\{sym}" if sym in ("\\", "|", "+", "-", "*") else sym
          )
  
      lines = []
      for category, columns, syms in symbols:
          syms = sorted(
              syms,
              # Sort by Unicode and place variants immediately
              # after standard versions.
              key=lambda sym: (
                  render_symbol(sym, ignore_variant=True),
                  sym.startswith(r"\var"),
              ),
              reverse=(category == "Hebrew"),
          )  # Hebrew is rtl
          rendered_syms = [
              f"{render_symbol(sym)} ``{sym}``" for sym in syms
          ]
          columns = min(columns, len(syms))
          lines.append("**%s**" % category)
          lines.append("")
          max_width = max(map(len, rendered_syms))
          header = (("=" * max_width) + " ") * columns
          lines.append(header.rstrip())
          for part in range(0, len(rendered_syms), columns):
              row = " ".join(
                  sym.rjust(max_width)
                  for sym in rendered_syms[part : part + columns]
              )
              lines.append(row)
          lines.append(header.rstrip())
          lines.append("")
  
      state_machine.insert_input(lines, "Symbol table")
      return []
  
file_path: matplotlib/doc/sphinxext/math_symbol_table.py
imports: import re
  from docutils.parsers.rst import Directive
  from matplotlib import _mathtext, _mathtext_data
label_desc: Use image node_id 1 for calling a global function with example usage: run(state_machine) and returns: list, unknown