code: def _get_num_terms(self, term_doc_matrix, non_text):
      return (
          term_doc_matrix.get_num_metadata()
          if non_text
          else term_doc_matrix.get_num_terms()
      )
  
file_path: scattertext/scattertext/termcompaction/DomainCompactor.py
imports: import numpy
  from scattertext.domain.CombineDocsIntoDomains import CombineDocsIntoDomains
label_desc: Use image node_id 3 for calling the DomainCompactor obj's underlying member method code with example usage: obj._get_num_terms(term_doc_matrix, non_text) and returns: unknown