code: def test_texinfo(app, status, warning):
      TexinfoTranslator.ignore_missing_images = True
      app.build(force_all=True)
      result = (app.outdir / "sphinxtests.texi").read_text(
          encoding="utf8"
      )
      assert (
          "@anchor{markup doc}@anchor{11}"
          "@anchor{markup id1}@anchor{12}"
          "@anchor{markup testing-various-markup}@anchor{13}" in result
      )
      assert "Footnotes" not in result
      # now, try to run makeinfo over it
      try:
          args = ["makeinfo", "--no-split", "sphinxtests.texi"]
          subprocess.run(
              args, capture_output=True, cwd=app.outdir, check=True
          )
      except OSError as exc:
          raise pytest.skip.Exception from exc  # most likely makeinfo was not found
      except CalledProcessError as exc:
          print(exc.stdout)
          print(exc.stderr)
          msg = f"makeinfo exited with return code {exc.retcode}"
          raise AssertionError(msg) from exc
  
imports: import os
  import re
  import subprocess
  from pathlib import Path
  from subprocess import CalledProcessError
  from unittest.mock import Mock
  import pytest
  from sphinx.builders.texinfo import default_texinfo_documents
  from sphinx.config import Config
  from sphinx.testing.util import strip_escseq
  from sphinx.util.docutils import new_document
  from sphinx.writers.texinfo import TexinfoTranslator
  from tests.test_builders.test_build_html import ENV_WARNINGS
label_desc: Use image node_id 2 for calling a global function with example usage: test_texinfo(app, status, warning) without return types