code: def _augment(self, img, param):
      do, _, _ = param
      if do:
          ret = cv2.flip(img, self.code)
          if img.ndim == 3 and ret.ndim == 2:
              ret = ret[:, :, np.newaxis]
      else:
          ret = img
      return ret
  
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 3 for calling the LegacyFlip obj's underlying member method code with example usage: obj._augment(img, param) and returns: ret