code: def get_feats(self, doc):
      return Counter(
          [
              " ".join(str(ent).split()).lower()
              for ent in doc.ents
              if (
                  (
                      self._entity_types_to_use is None
                      or ent.label_ in self._entity_types_to_use
                  )
                  and (ent.label_ not in self._entity_types_to_censor)
              )
          ]
      )
  
imports: from collections import Counter
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 2 for calling the SpacyEntities obj's underlying member method code with example usage: obj.get_feats(doc) and returns: Counter