code: def get_doc_sizes(self) -> np.array:
      if self._doc_sizes is None:
          return self._get_X().sum(axis=1)
      return self._doc_sizes
  
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 6 for calling the CorpusBasedTermScorer obj's underlying member method code with example usage: obj.get_doc_sizes() and returns: self, self