code: def test_reduce_terms(self):
      tdm = make_a_test_term_doc_matrix()
      scores = tdm.get_term_freq_df().sum(axis=1) % 10
      new_tdm = AutoTermSelector.reduce_terms(
          tdm, scores, num_term_to_keep=10
      )
      self.assertLessEqual(len(new_tdm.get_term_freq_df().index), 10)
      self.assertEqual(len(tdm.get_term_freq_df().index), 58)
  
imports: from unittest import TestCase
  from scattertext.AutoTermSelector import AutoTermSelector
  from scattertext.test.test_TermDocMat import make_a_test_term_doc_matrix
label_desc: Use image node_id 1 for calling the TestAutoTermSelector obj's underlying member method code with example usage: obj.test_reduce_terms() without return types