code: def set_doc_sizes(
      self, doc_sizes: np.array
  ) -> "CorpusBasedTermScorer":
      assert len(doc_sizes) == self.corpus_.get_num_docs()
      self._doc_sizes = doc_sizes
      return self
  
imports: from abc import ABCMeta, abstractmethod
  from typing import Tuple
  import numpy
  import pandas
  from scattertext.ParsedCorpus import ParsedCorpus
  from scipy import stats
  from scipy.sparse import vstack
  from scattertext.util import inherits_from
  from scattertext.termranking import AbsoluteFrequencyRanker
  from scattertext.termranking.TermRanker import TermRanker
label_desc: Use image node_id 4 for calling the CorpusBasedTermScorer obj's underlying member method code with example usage: obj.set_doc_sizes(doc_sizes) and returns: self