human
I wrote the below code

    print 'This    function    is    deprecated,    please    use    tf.map_fn    instead,    e.g:\n                                                            t_image    =    tf.map_fn(lambda    img:    tf.image.random_brightness(img,    max_delta=32.    /    255.),    t_image)\n                                                    t_image    =    tf.map_fn(lambda    img:    tf.image.random_contrast(img,    lower=0.5,    upper=1.5),    t_image)\n                                                    t_image    =    tf.map_fn(lambda    img:    tf.image.random_saturation(img,    lower=0.5,    upper=1.5),    t_image)\n                                                    t_image    =    tf.map_fn(lambda    img:    tf.image.random_hue(img,    max_delta=0.032),    t_image)'
    exit()
    try:
        batch_size = int(images._shape[0])
    except:
        raise Exception('unknow    batch_size    of    images')
    distorted_x = tf.Variable(tf.constant(0.1, shape=[1, height, width, 3]))
    i = tf.Variable(tf.constant(0))
    c = (lambda distorted_x, i: tf.less(i, batch_size))
    def body(distorted_x, i):
        image = tf.random_crop(tf.gather(images, i), [height, width, 3])
        image = tf.image.random_flip_left_right(image)
        image = tf.image.random_brightness(image, max_delta=63)
        image = tf.image.random_contrast(image, lower=0.2, upper=1.8)
        image = tf.image.per_image_whitening(image)
        image = tf.expand_dims(image, 0)
        return (tf.concat(0, [distorted_x, image]), tf.add(i, 1))
    result = tf.while_loop(cond=c, body=body, loop_vars=(distorted_x, i), parallel_iterations=16)
    return result

What's a good function header?
 ... Can you provide a Python program to print 'This    function    is    deprecated,    please    use    tf?
assistant
#Here is Python program to print 'This    function    is    deprecated,    please    use    tf.

def distorted_images(images=None, height=24, width=24):