code: def synth_dataset(self):
      for i in range(self.output_num):
          style_data = self.style_sampler.sample()
          style_input = style_data["image"]
          (
              corpus_language,
              text_input_label,
          ) = self.corpus_generator.generate()
          (
              text_input_label_list,
              text_input_list,
          ) = self.text_drawer.draw_text(
              text_input_label,
              corpus_language,
              style_input_width=style_input.shape[1],
          )
  
          text_input_label = "".join(text_input_label_list)
  
          synth_result = self.predictor.predict(
              style_input, text_input_list
          )
          fake_fusion = synth_result["fake_fusion"]
          self.writer.save_image(fake_fusion, text_input_label)
      self.writer.save_label()
      self.writer.merge_label()
  
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 2 for calling the DatasetSynthesiser obj's underlying member method code with example usage: obj.synth_dataset() without return types