code: def remove_terms_by_indices(self, idx_to_delete_list):
          '''
          Parameters
          ----------
          idx_to_delete_list, list
  
          Returns
          -------
          TermDocMatrix
          '''
          new_X, new_term_idx_store = self._get_X_after_delete_terms(idx_to_delete_list)
          return self._make_new_term_doc_matrix(new_X, self._mX, self._y, new_term_idx_store, self._category_idx_store,
                                                self._metadata_idx_store, self._y == self._yf remove_terms_by_indices(self, idx_to_delete_list):
          '''
          Parameters
          ----------
          idx_to_delete_list, list
  
          Returns
          -------
          TermDocMatrix
          '''
          new_X, new_term_idx_store = self._get_X_after_delete_terms(idx_to_delete_list)
          return self._make_new_term_doc_matrix(new_X, self._mX, self._y, new_term_idx_store, self._category_idx_store,
                                                self._metadata_idx_store, self._y == self._y)
docs: Parameters
          ----------
          idx_to_delete_list, list
  
          Returns
          -------
          TermDocMatrix