code: def test_ft2font_positive_hinting_factor():
      file_name = fm.findfont("DejaVu Sans")
      with pytest.raises(
          ValueError, match="hinting_factor must be greater than 0"
      ):
          ft2font.FT2Font(file_name, 0)
  
file_path: matplotlib/lib/matplotlib/tests/test_ft2font.py
imports: from pathlib import Path
  import io
  import pytest
  from matplotlib import ft2font
  from matplotlib.testing.decorators import check_figures_equal
  import matplotlib.font_manager
  import matplotlib.pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: test_ft2font_positive_hinting_factor() without return types