code: def test_math_number_all_latex(app, status, warning):
      app.build()
  
      content = (app.outdir / "python.tex").read_text(encoding="utf8")
      macro = (
          r"\\begin{equation\*}\s*"
          r"\\begin{split}a\^2\+b\^2=c\^2\\end{split}\s*"
          r"\\end{equation\*}"
      )
      assert re.search(macro, content, re.S)
  
      macro = r"Inline \\\(E=mc\^2\\\)"
      assert re.search(macro, content, re.S)
  
      macro = (
          r"\\begin{equation\*}\s*"
          r"\\begin{split}e\^{i\\pi}\+1=0\\end{split}\s+"
          r"\\end{equation\*}"
      )
      assert re.search(macro, content, re.S)
  
      macro = (
          r"\\begin{align\*}\\!\\begin{aligned}\s*"
          r"S &= \\pi r\^2\\\\\s*"
          r"V &= \\frac\{4}\{3} \\pi r\^3\\\\\s*"
          r"\\end{aligned}\\end{align\*}"
      )
      assert re.search(macro, content, re.S)
  
      macro = r"Referencing equation \\eqref{equation:math:foo}."
      assert re.search(macro, content, re.S)
  
imports: import re
  import shutil
  import subprocess
  import warnings
  import pytest
  from docutils import nodes
  from sphinx.ext.mathjax import MATHJAX_URL
  from sphinx.testing.util import assert_node
label_desc: Use image node_id 8 for calling a global function with example usage: test_math_number_all_latex(app, status, warning) without return types