code: def __init__(
      self,
      corpus,
      max_per_category,
      alternative_text_field=None,
      seed=None,
  ):
      DocsAndLabelsFromCorpus.__init__(
          self, corpus, alternative_text_field
      )
      self.max_per_category = max_per_category
      if seed is not None:
          np.random.seed(seed)
  
file_path: scattertext/scattertext/DocsAndLabelsFromCorpus.py
imports: import numpy
  import sys
  from scattertext.ParsedCorpus import ParsedCorpus
label_desc: Use image node_id 1 to create a new DocsAndLabelsFromCorpusSample object from inherited base classes: DocsAndLabelsFromCorpus with example: obj = DocsAndLabelsFromCorpusSample(corpus, max_per_category, alternative_text_field, seed)