code: def test_main(self):
      sys.modules["empath"] = Mock(analyze=mock_empath_analyze)
      FeatsFromOnlyEmpath()
      feat_getter = FeatsFromOnlyEmpath(
          empath_analyze_function=mock_empath_analyze
      )
      doc = whitespace_nlp("Hello this is a document.")
      term_freq = feat_getter.get_feats(doc)
      metadata_freq = feat_getter.get_doc_metadata(doc)
  
      self.assertEqual(term_freq, Counter())
      self.assertEqual(metadata_freq["ridicule"], 1)
      self.assertNotIn("fashion", metadata_freq)
      self.assertNotIn("document", metadata_freq)
      self.assertNotIn("a document", metadata_freq)
  
file_path: scattertext/scattertext/test/test_featsFromSpacyDocAndEmpath.py
imports: import sys
  from collections import Counter
  from unittest import TestCase
  from unittest.mock import Mock
  from scattertext import whitespace_nlp
  from scattertext.features.FeatsFromOnlyEmpath import FeatsFromOnlyEmpath
  from scattertext.features.FeatsFromSpacyDocAndEmpath import FeatsFromSpacyDocAndEmpath
label_desc: Use image node_id 1 for calling the TestFeatsFromOnlyEmpath obj's underlying member method code with example usage: obj.test_main() without return types