code: def test_numbered_toctree(app, status, warning):
      # give argument to :numbered: option
      index = (app.srcdir / "index.rst").read_text(encoding="utf8")
      index = re.sub(":numbered:.*", ":numbered: 1", index)
      (app.srcdir / "index.rst").write_text(index, encoding="utf8")
      app.build(force_all=True)
  
imports: import re
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_numbered_toctree(app, status, warning) without return types