code: def set_corpus(self, corpus: Optional) -> "AllCategoryScorer":
      self.corpus_ = corpus
      if corpus is None:
          self.term_ranker_ = None
      else:
          self.term_ranker_: Optional[
              TermRanker
          ] = self.term_ranker_factory_(
              corpus,
              **self.term_ranker_kwargs_
              if self.term_ranker_kwargs_ is not None
              else {},
          )
      return self
  
file_path: scattertext/scattertext/all_category_scorers/all_category_scorer.py
imports: import abc
  from typing import Optional, Dict
  import pandas
  from scattertext.termranking.AbsoluteFrequencyRanker import AbsoluteFrequencyRanker
  from scattertext.termranking.TermRanker import TermRanker
label_desc: Use image node_id 2 for calling the AllCategoryScorer obj's underlying member method code with example usage: obj.set_corpus(corpus) and returns: self