code: def get_doc_metadata(self, doc, prefix=""):
      empath_counter = Counter()
      if version_info[0] >= 3:
          doc = str(doc)
      for empath_category, score in self._empath_analyze_function(
          doc
      ).items():
          if score > 0:
              empath_counter[prefix + empath_category] = int(score)
      return empath_counter
  
file_path: scattertext/scattertext/features/FeatsFromSpacyDocAndEmpath.py
imports: from collections import Counter
  from functools import partial
  from sys import version_info
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 2 for calling the FeatsFromSpacyDocAndEmpath obj's underlying member method code with example usage: obj.get_doc_metadata(doc, prefix) and returns: empath_counter