code: def setUp(cls):
      cls.categories, cls.documents = get_docs_categories()
      cls.parsed_docs = []
      for doc in cls.documents:
          cls.parsed_docs.append(whitespace_nlp(doc))
      cls.df = pd.DataFrame(
          {"category": cls.categories, "parsed": cls.parsed_docs}
      )
      cls.corpus_fact = CorpusFromParsedDocuments(
          cls.df, "category", "parsed"
      )
  
imports: import json
  import os
  import pkgutil
  import re
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.CorpusFromParsedDocuments import CorpusFromParsedDocuments
  from scattertext.WhitespaceNLP import whitespace_nlp
  from scattertext.TermDocMatrixFactory import TermDocMatrixFactory
  from scattertext.test.test_TermDocMat import get_hamlet_docs, get_hamlet_snippet_binary_category
  from scattertext.test.test_corpusFromPandas import get_docs_categories
label_desc: Use image node_id 1 for calling the TestCorpusFromParsedDocuments obj's underlying member method code with example usage: obj.setUp(cls) without return types