code: def test_literalinclude_namedlink_latex(app, status, warning):
      app.build(filenames="index")
      latex = (app.outdir / "python.tex").read_text(encoding="utf8")
      label1 = "\\def\\sphinxLiteralBlockLabel{\\label{\\detokenize{caption:name-test-py}}}"
      link1 = (
          "\\hyperref[\\detokenize{caption:name-test-py}]"
          "{\\sphinxcrossref{\\DUrole{std,std-ref}{Python}}"
      )
      label2 = (
          "\\def\\sphinxLiteralBlockLabel"
          "{\\label{\\detokenize{namedblocks:some-python-code}}}"
      )
      link2 = (
          "\\hyperref[\\detokenize{namedblocks:some-python-code}]"
          "{\\sphinxcrossref{\\DUrole{std,std-ref}{the python code}}}"
      )
      assert label1 in latex
      assert link1 in latex
      assert label2 in latex
      assert link2 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 38 for calling a global function with example usage: test_literalinclude_namedlink_latex(app, status, warning) without return types