code: def test_2645():
      """Assert same font size calculation in corner cases."""
      folder = os.path.join(scriptdir, "resources")
      files = ("test_2645_1.pdf", "test_2645_2.pdf", "test_2645_3.pdf")
      for f in files:
          doc = fitz.open(os.path.join(folder, f))
          page = doc[0]
          fontsize0 = page.get_texttrace()[0]["size"]
          fontsize1 = page.get_text("dict", flags=fitz.TEXTFLAGS_TEXT)[
              "blocks"
          ][0]["lines"][0]["spans"][0]["size"]
          assert abs(fontsize0 - fontsize1) < 1e-5
  
imports: import io
  import os
  import fitz
  import pickle
label_desc: Use image node_id 28 for calling a global function with example usage: test_2645() without return types