code: def __init__(self):
      super(DatasetSynthesiser, self).__init__()
      self.tag = self.FLAGS.tag
      self.output_num = self.config["Global"]["output_num"]
      corpus_generator_method = self.config["CorpusGenerator"]["method"]
      self.corpus_generator = getattr(
          corpus_generators, corpus_generator_method
      )(self.config)
  
      style_sampler_method = self.config["StyleSampler"]["method"]
      assert style_sampler_method is not None
      self.style_sampler = style_samplers.DatasetSampler(self.config)
      self.writer = writers.SimpleWriter(self.config, self.tag)
  
file_path: PaddleOCR/StyleText/engine/synthesisers.py
imports: import os
  import numpy
  import cv2
  from utils.config import ArgsParser, load_config, override_config
  from utils.logging import get_logger
  from engine import style_samplers, corpus_generators, text_drawers, predictors, writers
label_desc: Use image node_id 1 to create a new DatasetSynthesiser object from inherited base classes: ImageSynthesiser with example: obj = DatasetSynthesiser()