@staticmethod<EOL><INDENT>def get_params(brightness, contrast, saturation, hue):<DEDENT>
transforms = []<EOL>if brightness is not None:<EOL><INDENT>brightness_factor = random.uniform(brightness[<NUM_LIT:0>], brightness[<NUM_LIT:1>])<EOL>transforms.append(Lambda(lambda img: F.adjust_brightness(img, brightness_factor)))<EOL><DEDENT>if contrast is not None:<EOL><INDENT>contrast_factor = random.uniform(contrast[<NUM_LIT:0>], contrast[<NUM_LIT:1>])<EOL>transforms.append(Lambda(lambda img: F.adjust_contrast(img, contrast_factor)))<EOL><DEDENT>if saturation is not None:<EOL><INDENT>saturation_factor = random.uniform(saturation[<NUM_LIT:0>], saturation[<NUM_LIT:1>])<EOL>transforms.append(Lambda(lambda img: F.adjust_saturation(img, saturation_factor)))<EOL><DEDENT>if hue is not None:<EOL><INDENT>hue_factor = random.uniform(hue[<NUM_LIT:0>], hue[<NUM_LIT:1>])<EOL>transforms.append(Lambda(lambda img: F.adjust_hue(img, hue_factor)))<EOL><DEDENT>random.shuffle(transforms)<EOL>transform = Compose(transforms)<EOL>return transform<EOL>
Get a randomized transform to be applied on image.

        Arguments are same as that of __init__.

        Returns:
            Transform which randomly adjusts brightness, contrast and
            saturation in a random order.