code: def test_math_eqref_format_html(app, status, warning):
      app.build(force_all=True)
  
      content = (app.outdir / "math.html").read_text(encoding="utf8")
      html = (
          '<p>Referencing equation <a class="reference internal" '
          'href="#equation-foo">Eq.1</a> and <a class="reference internal" '
          'href="#equation-foo">Eq.1</a>.</p>'
      )
      assert html in content
  
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 9 for calling a global function with example usage: test_math_eqref_format_html(app, status, warning) without return types