code: def duplicate_image(image, width):
      image_width = image.shape[1]
      dup_num = width // image_width + 1
      image = np.tile(image, reps=[1, dup_num, 1])
      cropped_image = image[:, :width, :]
      return cropped_image
  
file_path: PaddleOCR/StyleText/engine/style_samplers.py
imports: import numpy
  import random
  import cv2
label_desc: Use image node_id 1 for calling a global function with example usage: duplicate_image(image, width) and returns: cropped_image