parameters: (brightness, contrast, saturation, hue)
return_statement: return transform
docstring: Get a randomized transform to be applied on image.
          Arguments are same as that of __init__.
          Returns::
              Transform which randomly adjusts brightness, contrast, saturation
              and hue in a random order.
docstring_summary: Get a randomized transform to be applied on image.
          Arguments are same as that of __init__.
          Returns::
              Transform which randomly adjusts brightness, contrast, saturation
              and hue in a random order.
docstring_tokens: Get a randomized transform to be applied on image . Arguments are same as that of __init__ . Returns :: Transform which randomly adjusts brightness contrast saturation and hue in a random order .
function: def _get_transform(brightness, contrast, saturation, hue):
          """
          Get a randomized transform to be applied on image.
          Arguments are same as that of __init__.
          Returns::
              Transform which randomly adjusts brightness, contrast, saturation
              and hue in a random order.
          """
          transforms = []
  
          if brightness is not None:
              brightness_factor = random.uniform(brightness[0], brightness[1])
              transforms.append(Lambda(lambda img: adjust_brightness(img, brightness_factor)))
  
          if contrast is not None:
              contrast_factor = random.uniform(contrast[0], contrast[1])
              transforms.append(Lambda(lambda img: adjust_contrast(img, contrast_factor)))
  
          if saturation is not None:
              saturation_factor = random.uniform(saturation[0], saturation[1])
              transforms.append(Lambda(lambda img: adjust_saturation(img, saturation_factor)))
  
          if hue is not None:
              hue_factor = random.uniform(hue[0], hue[1])
              transforms.append(Lambda(lambda img: adjust_hue(img, hue_factor)))
  
          random.shuffle(transforms)
          transform = Compose(transforms)
  
          return transform
function_tokens: def _get_transform ( brightness , contrast , saturation , hue ) : transforms = [ ] if brightness is not None : brightness_factor = random . uniform ( brightness [ 0 ] , brightness [ 1 ] ) transforms . append ( Lambda ( lambda img : adjust_brightness ( img , brightness_factor ) ) ) if contrast is not None : contrast_factor = random . uniform ( contrast [ 0 ] , contrast [ 1 ] ) transforms . append ( Lambda ( lambda img : adjust_contrast ( img , contrast_factor ) ) ) if saturation is not None : saturation_factor = random . uniform ( saturation [ 0 ] , saturation [ 1 ] ) transforms . append ( Lambda ( lambda img : adjust_saturation ( img , saturation_factor ) ) ) if hue is not None : hue_factor = random . uniform ( hue [ 0 ] , hue [ 1 ] ) transforms . append ( Lambda ( lambda img : adjust_hue ( img , hue_factor ) ) ) random . shuffle ( transforms ) transform = Compose ( transforms ) return transform