code: def _make_new_term_doc_matrix(
      self,
      new_X=None,
      new_mX=None,
      new_y=None,
      new_term_idx_store=None,
      new_category_idx_store=None,
      new_metadata_idx_store=None,
      new_y_mask=None,
  ):
      X, mX, y = self._update_X_mX_y(new_X, new_mX, new_y, new_y_mask)
      return Corpus(
          X=X,
          mX=mX,
          y=y,
          term_idx_store=new_term_idx_store
          if new_term_idx_store is not None
          else self._term_idx_store,
          category_idx_store=new_category_idx_store
          if new_category_idx_store is not None
          else self._category_idx_store,
          metadata_idx_store=new_metadata_idx_store
          if new_metadata_idx_store is not None
          else self._metadata_idx_store,
          raw_texts=np.array(self.get_texts())[new_y_mask]
          if new_y_mask is not None
          else self.get_texts(),
          unigram_frequency_path=self._unigram_frequency_path,
      )
  
file_path: scattertext/scattertext/Corpus.py
imports: import numpy
  import pandas
  from numpy import nonzero
  from scattertext.TermDocMatrix import TermDocMatrix
label_desc: Use image node_id 7 for calling the Corpus 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: Corpus