code: def horizontal_flip(im):
      if len(im.shape) == 3:
          im = im[:, ::-1, :]
      elif len(im.shape) == 2:
          im = im[:, ::-1]
      return im
  
imports: import cv2
  import numpy
  from PIL import Image, ImageEnhance
  from scipy.ndimage import distance_transform_edt
label_desc: Use image node_id 7 for calling a global function with example usage: horizontal_flip(im) and returns: im