code: def test_LiteralIncludeReader_dedent(literal_inc_path):
      # dedent: 2
      options = {"lines": "9-11", "dedent": 2}
      reader = LiteralIncludeReader(
          literal_inc_path, options, DUMMY_CONFIG
      )
      content, lines = reader.read()
      assert content == ("  def baz():\n" "      pass\n" "\n")
  
      # dedent: 4
      options = {"lines": "9-11", "dedent": 4}
      reader = LiteralIncludeReader(
          literal_inc_path, options, DUMMY_CONFIG
      )
      content, lines = reader.read()
      assert content == ("def baz():\n" "    pass\n" "\n")
  
      # dedent: 6
      options = {"lines": "9-11", "dedent": 6}
      reader = LiteralIncludeReader(
          literal_inc_path, options, DUMMY_CONFIG
      )
      content, lines = reader.read()
      assert content == ("f baz():\n" "  pass\n" "\n")
  
      # dedent: None
      options = {"lines": "9-11", "dedent": None}
      reader = LiteralIncludeReader(
          literal_inc_path, options, DUMMY_CONFIG
      )
      content, lines = reader.read()
      assert content == ("def baz():\n" "    pass\n" "\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 21 for calling a global function with example usage: test_LiteralIncludeReader_dedent(literal_inc_path) without return types