code: def _limit_to_pairs_of_bigrams_and_a_constituent_unigram(
      self, pairs, terms
  ):
      return pairs[
          np.array([terms[i[1]] in terms[i[0]] for i in pairs])
      ]
  
file_path: scattertext/scattertext/termcompaction/CompactTerms.py
imports: import numpy
  from scattertext.CSRMatrixTools import CSRMatrixFactory
  from scattertext.indexstore import IndexStore
  from scattertext.termranking import AbsoluteFrequencyRanker
label_desc: Use image node_id 6 for calling the CompactTerms obj's underlying member method code with example usage: obj._limit_to_pairs_of_bigrams_and_a_constituent_unigram(pairs, terms) and returns: pairs