code: def _augment(self, img, v):
      old_dtype = img.dtype
      img = img.astype("float32")
      img += v
      if self.clip or old_dtype == np.uint8:
          img = np.clip(img, 0, 255)
      return img.astype(old_dtype)
  
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 LegacyBrightness obj's underlying member method code with example usage: obj._augment(img, v) and returns: img