code: def test_code_block_caption_latex(app, status, warning):
      app.build(force_all=True)
      latex = (app.outdir / "python.tex").read_text(encoding="utf8")
      caption = "\\sphinxSetupCaptionForVerbatim{caption \\sphinxstyleemphasis{test} rb}"
      label = "\\def\\sphinxLiteralBlockLabel{\\label{\\detokenize{caption:id1}}}"
      link = (
          "\\hyperref[\\detokenize{caption:name-test-rb}]"
          "{Listing \\ref{\\detokenize{caption:name-test-rb}}}"
      )
      assert caption in latex
      assert label in latex
      assert link in latex
  
imports: import os.path
  import pytest
  from docutils import nodes
  from sphinx.config import Config
  from sphinx.directives.code import LiteralIncludeReader
  from sphinx.testing.util import etree_parse
label_desc: Use image node_id 29 for calling a global function with example usage: test_code_block_caption_latex(app, status, warning) without return types