human
Here's a good function header given the following:
I wrote the below code

    def _image_to_gray(image):
        image_gray1 = tf.image.rgb_to_grayscale(image)
        image_gray3 = tf.image.grayscale_to_rgb(image_gray1)
        return image_gray3
    with tf.name_scope('RandomRGBtoGray', values=[image]):
        do_gray_random = tf.random_uniform([], seed=seed)
        image = tf.cond(tf.greater(do_gray_random, probability), (lambda : image), (lambda : _image_to_gray(image)))
    return image

What's a good function header?
assistant
#Here's a good function header.

def random_rgb_to_gray(image, probability=0.1, seed=None):