code: def setUp(cls):
      categories, documents = get_docs_categories()
      cls.df = pd.DataFrame({"category": categories, "text": documents})
      cls.corpus = CorpusFromPandas(
          cls.df, "category", "text", nlp=whitespace_nlp
      ).build()
  
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 7 for calling the TestCorpusFromPandas obj's underlying member method code with example usage: obj.setUp(cls) without return types