code: def test_entity_types_to_censor_not_a_set(self):
      doc = whitespace_nlp("A a bb cc.", {"bb": "A"})
      with self.assertRaises(AssertionError):
          FeatsFromSpacyDoc(entity_types_to_censor="A").get_feats(doc)
  
imports: import re
  from collections import Counter
  from unittest import TestCase
  from scattertext import whitespace_nlp
  from scattertext.WhitespaceNLP import Tok, Doc, _regex_parse_sentence, whitespace_nlp_with_sentences
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
  from scattertext.features.FeatsFromSpacyDocOnlyNounChunks import FeatsFromSpacyDocOnlyNounChunks
label_desc: Use image node_id 6 for calling the TestFeatsFromSpacyDoc obj's underlying member method code with example usage: obj.test_entity_types_to_censor_not_a_set() without return types