def image_function(self, image): gamma_adjusted = adjust_gamma(image, gamma=self.get_random_variable('gamma'), gain=self.gain) return gamma_adjusted