code: def test_build(self):
      term_doc_mat = build_hamlet_jz_term_doc_mat()
      self.assertEqual(term_doc_mat.get_num_docs(), 8)
      self.assertEqual(
          term_doc_mat.get_categories(), ["hamlet", "jay-z/r. kelly"]
      )
  
imports: import re
  from unittest import TestCase
  import pandas
  from sklearn.feature_extraction.text import TfidfTransformer
  from sklearn.linear_model import PassiveAggressiveClassifier
  from scattertext import CorpusFromParsedDocuments
  from scattertext import FeatsFromSpacyDoc, FeatsFromSpacyDocAndEmpath
  from scattertext import TermDocMatrixFactory
  from scattertext.TermDocMatrixFactory import FeatsFromDoc
  from scattertext.WhitespaceNLP import whitespace_nlp, Doc, Tok
label_desc: Use image node_id 1 for calling the TestTermDocMatrixFactory obj's underlying member method code with example usage: obj.test_build() without return types