code: def synth_image():
      args = ArgsParser().parse_args()
      image_synthesiser = ImageSynthesiser()
      style_image_path = args.style_image
      img = cv2.imread(style_image_path)
      text_corpus = args.text_corpus
      language = args.language
  
      synth_result = image_synthesiser.synth_image(
          text_corpus, img, language
      )
      fake_fusion = synth_result["fake_fusion"]
      fake_text = synth_result["fake_text"]
      fake_bg = synth_result["fake_bg"]
      cv2.imwrite("fake_fusion.jpg", fake_fusion)
      cv2.imwrite("fake_text.jpg", fake_text)
      cv2.imwrite("fake_bg.jpg", fake_bg)
  
file_path: PaddleOCR/StyleText/tools/synth_image.py
imports: import os
  import cv2
  import sys
  import glob
  from utils.config import ArgsParser
  from engine.synthesisers import ImageSynthesiser
label_desc: Use image node_id 1 for calling a global function with example usage: synth_image() without return types