code: def get_labels_and_texts(self):
      # type: () -> dict
      texts = self._get_texts_to_display()
      to_ret = {
          "categories": self._corpus.get_categories(),
          "labels": self._corpus.get_doc_indices(),
          "texts": self._get_list_from_texts(texts),
      }
      if self._use_non_text_features:
          to_ret["extra"] = self._corpus.list_extra_features(
              not self._use_terms_for_extra_features
          )
      return to_ret
  
file_path: scattertext/scattertext/DocsAndLabelsFromCorpus.py
imports: import numpy
  import sys
  from scattertext.ParsedCorpus import ParsedCorpus
label_desc: Use image node_id 4 for calling the DocsAndLabelsFromCorpus obj's underlying member method code with example usage: obj.get_labels_and_texts() and returns: to_ret