code: def use_token_counts_as_doc_sizes(self) -> "CorpusBasedTermScorer":
      return self.set_doc_sizes(
          doc_sizes=self.corpus_.get_parsed_docs().apply(len).values
      )
  
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 5 for calling the CorpusBasedTermScorer obj's underlying member method code with example usage: obj.use_token_counts_as_doc_sizes() and returns: self