code: def __init__(self, horiz=False, vert=False, prob=0.5):
      super(LegacyFlip, self).__init__()
      if horiz and vert:
          raise ValueError(
              "Cannot do both horiz and vert. Please use two Flip instead."
          )
      elif horiz:
          self.code = 1
      elif vert:
          self.code = 0
      else:
          raise ValueError(
              "At least one of horiz or vert has to be True!"
          )
      self._init(locals())
  
imports: import sys
  import numpy
  import cv2
  import unittest
  from .base import ImageAugmentor, AugmentorList
  from .imgproc import Contrast
  from .noise import SaltPepperNoise
  from .misc import Flip, Resize
label_desc: Use image node_id 1 to create a new LegacyFlip object from inherited base classes: ImageAugmentor with example: obj = LegacyFlip(horiz, vert, prob)