code: def save_image(self, image, text_input_label):
      image_home = os.path.join(self.output_dir, "images", self.tag)
      if not os.path.exists(image_home):
          os.makedirs(image_home)
  
      image_path = os.path.join(
          image_home, "{}.png".format(self.counter)
      )
      # todo support continue synth
      cv2.imwrite(image_path, image)
      self.logger.info("generate image: {}".format(image_path))
  
      image_name = os.path.join(self.tag, "{}.png".format(self.counter))
      self.label_dict[image_name] = text_input_label
  
      self.counter += 1
      if not self.counter % 100:
          self.save_label()
  
file_path: PaddleOCR/StyleText/engine/writers.py
imports: import os
  import cv2
  import glob
  from utils.logging import get_logger
label_desc: Use image node_id 2 for calling the SimpleWriter obj's underlying member method code with example usage: obj.save_image(image, text_input_label) without return types