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/OffsetCorpusFactory.py
imports: import string
  import numpy
  from scattertext.OffsetCorpus import OffsetCorpus
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 4 for calling the OffsetCorpusFactory obj's underlying member method code with example usage: obj._get_y_and_populate_category_idx_store(categories) and returns: np