code: def test_2608():
      if fitz.mupdf_version_tuple <= (1, 23, 4):
          print(
              f"Not running test_2608 because mupdf too old: {fitz.mupdf_version_tuple=}"
          )
          return
      flags = fitz.TEXT_DEHYPHENATE | fitz.TEXT_MEDIABOX_CLIP
      with fitz.open(
          os.path.abspath(f"{__file__}/../resources/2201.00069.pdf")
      ) as doc:
          page = doc[4]
          blocks = page.get_text_blocks(flags=flags)
          text = blocks[10][4]
          with open(
              os.path.abspath(f"{__file__}/../test_2608_out"), "wb"
          ) as f:
              f.write(text.encode("utf8"))
          with open(
              os.path.abspath(
                  f"{__file__}/../resources/test_2608_expected"
              ),
              "rb",
          ) as f:
              expected = f.read().decode("utf8")
          # Github windows x32 seems to insert \r characters; maybe something to
          # do with the Python installation's line endings settings.
          expected = expected.replace("\r", "")
          print(f'test_2608(): {text.encode("utf8")=}')
          print(f'test_2608(): {expected.encode("utf8")=}')
          assert text == expected
  
file_path: pymudf/tests/test_font.py
imports: import fitz
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: test_2608() without return types