code: def test_fallback_errors():
      file_name = fm.findfont("DejaVu Sans")
  
      with pytest.raises(
          TypeError, match="Fallback list must be a list"
      ):
          # failing to be a list will fail before the 0
          ft2font.FT2Font(file_name, _fallback_list=(0,))  # type: ignore[arg-type]
  
      with pytest.raises(
          TypeError, match="Fallback fonts must be FT2Font objects."
      ):
          ft2font.FT2Font(file_name, _fallback_list=[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 1 for calling a global function with example usage: test_fallback_errors() without return types