code: def test_main(self):
      d = DocsAndLabelsFromCorpus(self.parsed_corpus)
      output = d.get_labels_and_texts()
      self.assertTrue("texts" in output)
      self.assertTrue("labels" in output)
      self.assertEqual(
          self.parsed_corpus._y.astype(int).tolist(),
          list(output["labels"]),
      )
      self.assertEqual(
          self.parsed_corpus.get_texts().tolist(), list(output["texts"])
      )
  
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 3 for calling the TestDocsAndLabelsFromCorpus obj's underlying member method code with example usage: obj.test_main() without return types