code: def _make_new_term_doc_matrix(
      self,
      new_X,
      new_mX,
      new_y,
      new_term_idx_store,
      new_category_idx_store,
      new_metadata_idx_store,
      new_y_mask,
  ):
      if self._parsed_col is not None and self._parsed_col in self._df:
          return ParsedCorpus(
              self._df[new_y_mask],
              new_X,
              new_mX,
              new_y,
              new_term_idx_store,
              new_category_idx_store,
              new_metadata_idx_store,
              self._parsed_col,
              self._category_col,
          )
      else:
          return CorpusDF(
              self._df[new_y_mask],
              new_X,
              new_mX,
              new_y,
              self._text_col,
              new_term_idx_store,
              new_category_idx_store,
              new_metadata_idx_store,
              self._df[self._text_col][new_y_mask],
          )
  
file_path: scattertext/scattertext/CorpusFromFeatureDict.py
imports: import numpy
  from scattertext.CorpusDF import CorpusDF
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.ParsedCorpus import ParsedCorpus
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 5 for calling the CorpusFromFeatureDict obj's underlying member method code with example usage: obj._make_new_term_doc_matrix(new_X, new_mX, new_y, new_term_idx_store, new_category_idx_store, new_metadata_idx_store, new_y_mask) and returns: ParsedCorpus, CorpusDF