code: def get_frequencies(self, term_doc_matrix) -> pd.Series:
      return self.__get_term_ranks_and_frequencies(term_doc_matrix)[1]
  
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 6 for calling the TermCategoryRanker obj's underlying member method code with example usage: obj.get_frequencies(term_doc_matrix) and returns: self