code: def horizontal_flip(prob, image, order="CHW"):
      """
      Horizontally flip the image.
      Args:
          prob (float): probability to flip.
          image (array): image to pad.
          order (str): order of the `height`, `channel` and `width`.
      Returns:
          img (array): flipped image.
      """
      assert order in [
          "CHW",
          "HWC",
      ], "order {} is not supported".format(order)
      if np.random.uniform() < prob:
          if order == "CHW":
              image = image[:, :, ::-1]
          elif order == "HWC":
              image = image[:, ::-1, :]
          else:
              raise NotImplementedError(
                  "Unknown order {}".format(order)
              )
      return image
  
imports: import math
  import numpy
  import cv2
label_desc: Use image node_id 13 for calling a global function with example usage: horizontal_flip(prob, image, order) and returns: image