code: def test_bad_afm(afm_data):
      fh = BytesIO(afm_data)
      with pytest.raises(RuntimeError):
          _afm._parse_header(fh)
  
file_path: matplotlib/lib/matplotlib/tests/test_afm.py
imports: from io import BytesIO
  import pytest
  import logging
  from matplotlib import _afm
  from matplotlib import font_manager
label_desc: Use image node_id 6 for calling a global function with example usage: test_bad_afm(afm_data) without return types