code: def test_parse_ent_types_bad_type(self):
      for bad_type in [1, 3.1415, True, b"PERSON"]:
          with pytest.raises(TypeError):
              _ = basics._parse_ent_types(bad_type, "include")
  
imports: import collections
  import pytest
  from spacy.tokens import Span, Token
  from textacy import extract
  from textacy.extract import basics
label_desc: Use image node_id 4 for calling the TestEntities obj's underlying member method code with example usage: obj.test_parse_ent_types_bad_type() without return types