code: def test_linenothreshold(app, status, warning):
      app.build(filenames=[app.srcdir / "linenothreshold.rst"])
      html = (app.outdir / "linenothreshold.html").read_text(
          encoding="utf8"
      )
  
      # code-block using linenothreshold
      assert (
          '<span class="linenos">1</span><span class="k">class</span> '
          '<span class="nc">Foo</span><span class="p">:</span>' in html
      )
  
      # code-block not using linenothreshold (no line numbers)
      assert '<span></span><span class="c1"># comment</span>' in html
  
      # literal include using linenothreshold
      assert (
          '<span class="linenos"> 1</span><span class="c1">'
          "# Literally included file using Python highlighting</span>"
          in html
      )
  
      # literal include not using linenothreshold (no line numbers)
      assert (
          '<span></span><span class="c1"># Very small literal include '
          "(linenothreshold check)</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 42 for calling a global function with example usage: test_linenothreshold(app, status, warning) without return types