code: def _get_y_and_populate_category_idx_store(self, categories):
      return np.array(categories.apply(self._category_idx_store.getidx))
  
file_path: scattertext/scattertext/CorpusFromParsedDocuments.py
imports: import numpy
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 3 for calling the CorpusFromParsedDocuments obj's underlying member method code with example usage: obj._get_y_and_populate_category_idx_store(categories) and returns: np