code: def test_literalinclude_classes(app, status, warning):
      app.build(filenames=[app.srcdir / "classes.rst"])
      et = etree_parse(app.outdir / "classes.xml")
      secs = et.findall("./section/section")
  
      code_block = secs[0].findall("literal_block")
      assert len(code_block) > 0
      assert code_block[0].get("classes") == "foo bar"
      assert code_block[0].get("names") == "code_block"
  
      literalinclude = secs[1].findall("literal_block")
      assert len(literalinclude) > 0
      assert literalinclude[0].get("classes") == "bar baz"
      assert literalinclude[0].get("names") == "literal_include"
  
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 39 for calling a global function with example usage: test_literalinclude_classes(app, status, warning) without return types