code: def get_doc_metadata(self, doc, prefix=""):
      topic_counter = Counter()
      if version_info[0] >= 3:
          doc = str(doc)
      for topic_category, score in (
          self._analyze(doc).to_dict()[0].items()
      ):
          topic_counter[prefix + topic_category] = int(score)
      return topic_counter
  
file_path: scattertext/scattertext/features/FeatsFromMoralFoundationsDictionary.py
imports: import io
  import pkgutil
  from collections import Counter
  from re import split
  from sys import version_info
  import pandas
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 5 for calling the FeatsFromMoralFoundationsDictionary obj's underlying member method code with example usage: obj.get_doc_metadata(doc, prefix) and returns: topic_counter