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,
              "orig": [d.upper() for d in cls.documents],
          }
      )
      cls.parsed_corpus = CorpusFromParsedDocuments(
          cls.df, "category", "parsed"
      ).build()
      cls.corpus = CorpusFromPandas(
          cls.df, "category", "orig", nlp=whitespace_nlp
      ).build()
  
file_path: scattertext/scattertext/test/test_docsAndLabelsFromCorpus.py
imports: import json
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext import CorpusFromParsedDocuments
  from scattertext import whitespace_nlp
  from scattertext.CorpusFromPandas import CorpusFromPandas
  from scattertext.DocsAndLabelsFromCorpus import DocsAndLabelsFromCorpus, DocsAndLabelsFromCorpusSample, CorpusShouldBeParsedCorpusException
  from scattertext.test.test_corpusFromPandas import get_docs_categories
  from scattertext.test.test_termDocMatrixFactory import build_hamlet_jz_corpus_with_meta
label_desc: Use image node_id 1 for calling the TestDocsAndLabelsFromCorpus obj's underlying member method code with example usage: obj.setUp(cls) without return types