code: def test_get_y_and_populate_category_idx_store(self):
      corpus = self.corpus_fact.build()
      self.assertEqual([0, 0, 0, 0, 1, 1, 1, 1, 1, 2], list(corpus._y))
      self.assertEqual(
          [(0, "hamlet"), (1, "jay-z/r. kelly"), (2, "???")],
          list(sorted(list(corpus._category_idx_store.items()))),
      )
  
imports: import json
  import os
  import pkgutil
  import re
  from unittest import TestCase
  import numpy
  import pandas
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.CorpusFromParsedDocuments import CorpusFromParsedDocuments
  from scattertext.WhitespaceNLP import whitespace_nlp
  from scattertext.TermDocMatrixFactory import TermDocMatrixFactory
  from scattertext.test.test_TermDocMat import get_hamlet_docs, get_hamlet_snippet_binary_category
  from scattertext.test.test_corpusFromPandas import get_docs_categories
label_desc: Use image node_id 4 for calling the TestCorpusFromParsedDocuments obj's underlying member method code with example usage: obj.test_get_y_and_populate_category_idx_store() without return types