code: def test_code_block(app, status, warning):
      app.build(filenames=[app.srcdir / "index.rst"])
      et = etree_parse(app.outdir / "index.xml")
      secs = et.findall("./section/section")
      code_block = secs[0].findall("literal_block")
      assert len(code_block) > 0
      actual = code_block[0].text
      expect = "    def ruby?\n" + "        false\n" + "    end"
      assert actual == expect
  
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 26 for calling a global function with example usage: test_code_block(app, status, warning) without return types