code: def __get_scores(self, cat, scorer, ranker) -> pd.Series:
      if isinstance(scorer, CorpusBasedTermScorer):
          scorer = scorer.set_categories(category_name=cat)
          if self.use_metadata:
              scorer = scorer.use_metadata()
          if ranker is not None:
              scorer = scorer.set_term_ranker(term_ranker=ranker)
          return scorer.get_scores()
      term_freq_df = ranker.get_ranks("")
      cat_freq = term_freq_df[cat]
      global_freq = term_freq_df.sum(axis=1)
      return scorer.get_scores(cat_freq, global_freq - cat_freq)
  
file_path: scattertext/scattertext/categorytable/multi_category_association_scorer.py
imports: import pandas
  from scattertext.termranking import AbsoluteFrequencyRanker
  from scattertext.termscoring.RankDifference import RankDifference
  from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
  from scattertext.categorytable import MultiCategoryAssociationBase
  from scattertext.termranking.TermRanker import TermRanker
label_desc: Use image node_id 2 for calling the MultiCategoryAssociationScorer obj's underlying member method code with example usage: obj.__get_scores(cat, scorer, ranker) and returns: scorer, scorer