code: def test_term_doc(self):
      self.assertIsInstance(self.corpus, CorpusDF)
      self.assertEqual(
          set(self.corpus.get_categories()),
          set(["hamlet", "jay-z/r. kelly", "???"]),
      )
      self.assertEqual(self.corpus.get_num_docs(), 10)
      term_doc_df = self.corpus.get_term_freq_df()
      self.assertEqual(term_doc_df.loc["of"].sum(), 3)
      self.corpus.get_df()
  
file_path: scattertext/scattertext/test/test_corpusFromPandas.py
imports: from unittest import TestCase
  import numpy
  import pandas
  from scattertext import chinese_nlp, CorpusDF
  from scattertext import whitespace_nlp
  from scattertext.CorpusFromPandas import CorpusFromPandas
label_desc: Use image node_id 1 for calling the TestCorpusFromPandas obj's underlying member method code with example usage: obj.test_term_doc() without return types