code: def test_literal_include_linenos(app, status, warning):
      app.build(filenames=[app.srcdir / "linenos.rst"])
      html = (app.outdir / "linenos.html").read_text(encoding="utf8")
  
      # :linenos:
      assert (
          '<span class="linenos"> 1</span><span class="c1">'
          "# Literally included file using Python highlighting</span>"
          in html
      )
  
      # :lineno-start:
      assert (
          '<span class="linenos">200</span><span class="c1">'
          "# Literally included file using Python highlighting</span>"
          in html
      )
  
      # :lines: 5-9
      assert (
          '<span class="linenos">5</span><span class="k">class</span> '
          '<span class="nc">Foo</span><span class="p">:</span>' in html
      )
  
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 34 for calling a global function with example usage: test_literal_include_linenos(app, status, warning) without return types