code: def __init__(
      self,
      scorer: type = ScaledFScorePresetsNeg1To1,
      term_ranker: type = AbsoluteFrequencyRanker,
      use_non_text_features: bool = False,
      target_category: Optional[str] = None,
  ):
      self.scorer = scorer
      self.term_ranker = term_ranker
      self.use_non_text_features = use_non_text_features
      self.target_category = target_category
  
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 1 to create a new TermCategoryRanker object from inherited base classes: object with example: obj = TermCategoryRanker(scorer, term_ranker, use_non_text_features, target_category)