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