code: def test_singlehtml_toctree(app, status, warning):
      app.build(force_all=True)
      try:
          app.builder._get_local_toctree("index")
      except AttributeError:
          pytest.fail(
              "Unexpected AttributeError in app.builder.fix_refuris"
          )
  
imports: import re
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_singlehtml_toctree(app, status, warning) without return types