import tensorflow as tf

  x = tf.image.random_contrast(x, lower=lower, upper=upper)
  x = tf.image.random_saturation(x, lower=lower, upper=upper)
  x = tf.image.random_hue(x, max_delta=0.2*s)
  x = tf.clip_by_value(x, 0, 1)
  return x

