code: def get_doc_metadata(self, doc, prefix=""):
      feature_counter = Counter()
      if version_info[0] >= 3:
          doc = str(doc)
      for category, score in self._analyze(doc).to_dict()[0].items():
          feature_counter[prefix + category] = int(score)
      return feature_counter
  
imports: from abc import ABC, abstractmethod
  from collections import Counter
  from functools import reduce
  from re import split
  from sys import version_info
  import pandas
  from flashtext import KeywordProcessor
  from scattertext.ScatterChart import check_topic_model_string_format
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 4 for calling the FeatsFromTopicModelBase obj's underlying member method code with example usage: obj.get_doc_metadata(doc, prefix) and returns: feature_counter