code: def _initialize_scorer(self, term_doc_matrix):
      if issubclass(self.scorer, CorpusBasedTermScorer):
          my_scorer = self.scorer(term_doc_matrix)
          if self.use_non_text_features:
              return my_scorer.use_metadata()
          return my_scorer
      return self.scorer()
  
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 4 for calling the TermCategoryRanker obj's underlying member method code with example usage: obj._initialize_scorer(term_doc_matrix) and returns: self, my_scorer, my_scorer