code: def test_LiteralIncludeReader_diff(testroot, literal_inc_path):
      options = {"diff": testroot / "literal-diff.inc"}
      reader = LiteralIncludeReader(
          literal_inc_path, options, DUMMY_CONFIG
      )
      content, lines = reader.read()
      assert content == (
          "--- " + os.path.join(testroot, "literal-diff.inc") + "\n"
          "+++ " + os.path.join(testroot, "literal.inc") + "\n"
          "@@ -6,8 +6,8 @@\n"
          "     pass\n"
          " \n"
          " class Bar:\n"
          "-    def baz(self):\n"
          "+    def baz():\n"
          "         pass\n"
          " \n"
          "-# comment after Bar class\n"
          "+# comment after Bar class definition\n"
          " def bar(): pass\n"
      )
  
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 25 for calling a global function with example usage: test_LiteralIncludeReader_diff(testroot, literal_inc_path) without return types