code: def test_mathjax_align(app, status, warning):
      app.build(force_all=True)
  
      content = (app.outdir / "index.html").read_text(encoding="utf8")
      shutil.rmtree(app.outdir)
      html = (
          r'<div class="math notranslate nohighlight">\s*'
          r"\\\[ \\begin\{align\}\\begin\{aligned\}S \&amp;= \\pi r\^2\\\\"
          r"V \&amp;= \\frac\{4\}\{3\} \\pi r\^3\\end\{aligned\}\\end\{align\} \\\]</div>"
      )
      assert re.search(html, 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 6 for calling a global function with example usage: test_mathjax_align(app, status, warning) without return types