code: def set_corpus(self, corpus: Optional) -> "AllCategoryScorer":
      AllCategoryScorer.set_corpus(self, corpus=corpus)
      self.term_scorer_ = None
      if self.corpus_ is not None:
          self.term_scorer_: CorpusBasedTermScorer = (
              self.term_scorer_factory_(
                  self.corpus_,
                  **self.term_scorer_kwargs_
                  if self.term_scorer_kwargs_ is not None
                  else {},
              )
          )
      return self
  
file_path: scattertext/scattertext/all_category_scorers/all_category_term_scorer.py
imports: import abc
  from typing import Dict, Optional
  import pandas
  import numpy
  from scattertext.termscoring.RankDifferenceScorer import RankDifferenceScorer
  from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
  from scattertext.all_category_scorers.all_category_scorer import AllCategoryScorer
label_desc: Use image node_id 2 for calling the AllCategoryTermScorer obj's underlying member method code with example usage: obj.set_corpus(corpus) and returns: self