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