def METHOD_NAME(self, image, transformation=None, **kwargs):
    (addition, threshold) = transformation
    image = preprocessing.transform_value_range(
        image,
        original_range=self.value_range,
        target_range=(0, 255),
        dtype=self.compute_dtype,
    )
    result = image + addition
    result = tf.clip_by_value(result, 0, 255)
    result = tf.where(result < threshold, result, 255 - result)
    result = preprocessing.transform_value_range(
        result,
        original_range=(0, 255),
        target_range=self.value_range,
        dtype=self.compute_dtype,
    )
    return result