code: def test_tokenize_errors():
      with pytest.raises(ValueError):
          list(
              t1f._tokenize(
                  b"1234 (this (string) is unterminated\\)", True
              )
          )
      with pytest.raises(ValueError):
          list(t1f._tokenize(b"/Foo<01234", True))
      with pytest.raises(ValueError):
          list(t1f._tokenize(b"/Foo<01234abcg>/Bar", True))
  
file_path: matplotlib/lib/matplotlib/tests/test_type1font.py
imports: import matplotlib._type1font
  import os.path
  import difflib
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_tokenize_errors() without return types