code: def test_font2():
      """Old and new length computation must be the same."""
      font = fitz.Font("helv")
      text = "PyMuPDF"
      assert font.text_length(text) == fitz.get_text_length(text)
  
file_path: pymudf/tests/test_font.py
imports: import fitz
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_font2() without return types