code: def random_pad(image, horizontal=(0, 100)):
      l, r = np.random.randint(*horizontal, size=1), np.random.randint(
          *horizontal, size=1
      )
      return cv.copyMakeBorder(
          image,
          l[0],
          r[0],
          0,
          0,
          cv.BORDER_CONSTANT,
          value=[0] * (1 if image.ndim == 2 else image.shape[-1]),
      )
  
imports: import random
  from random import randint
  import numpy
  import cv2
label_desc: Use image node_id 4 for calling a global function with example usage: random_pad(image, horizontal) and returns: cv