code: def _make_docs_getter(
      self, max_docs_per_category, alternative_text_field
  ):
      if max_docs_per_category is None:
          docs_getter = DocsAndLabelsFromCorpus(
              self.term_doc_matrix,
              alternative_text_field=alternative_text_field,
          )
      else:
          docs_getter = DocsAndLabelsFromCorpusSample(
              self.term_doc_matrix,
              max_docs_per_category,
              alternative_text_field=alternative_text_field,
          )
      if (
          self.scatterchartdata.use_non_text_features
          or self.scatterchartdata.add_extra_features
      ):
          docs_getter = docs_getter.use_non_text_features()
          if self.scatterchartdata.add_extra_features:
              docs_getter = docs_getter.use_terms_for_extra_features()
      return docs_getter
  
file_path: scattertext/scattertext/ScatterChartExplorer.py
imports: import logging
  import numpy
  import pandas
  from scattertext.ScatterChart import ScatterChart
  from scattertext.Scalers import percentile_alphabetical
  from scattertext.DocsAndLabelsFromCorpus import DocsAndLabelsFromCorpus, DocsAndLabelsFromCorpusSample
label_desc: Use image node_id 4 for calling the ScatterChartExplorer obj's underlying member method code with example usage: obj._make_docs_getter(max_docs_per_category, alternative_text_field) and returns: docs_getter