code: def random_flip(image, flip):
      if flip == 1:
          return cv2.flip(image, 1)
      return image
  
file_path: ImageAI/imageai_tf_deprecated/Detection/Custom/utils/image.py
imports: import cv2
  import numpy
  import copy
label_desc: Use image node_id 3 for calling a global function with example usage: random_flip(image, flip) and returns: image, cv2