code: def _remove_terms(self, term_doc_matrix, terms_to_remove):
      return term_doc_matrix.remove_terms(
          terms_to_remove, non_text=self.scorer.use_non_text_features
      )
  
imports: from typing import Optional, Tuple
  import pandas
  import numpy
  from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
  from scipy.stats import rankdata
  from scattertext.termranking.AbsoluteFrequencyRanker import AbsoluteFrequencyRanker
  from scattertext.termscoring.ScaledFScore import ScaledFScorePresetsNeg1To1
label_desc: Use image node_id 4 for calling the BaseAssociationCompactor obj's underlying member method code with example usage: obj._remove_terms(term_doc_matrix, terms_to_remove) and returns: term_doc_matrix