human
I wrote the below code

    def random_jitter_box(box, ratio, seed):
        'Randomly    jitter    box.\n\n                Args:\n                        box:    bounding    box    [1,    1,    4].\n                        ratio:    max    ratio    between    jittered    box    and    original    box,\n                        a    number    between    [0,    0.5].\n                        seed:    random    seed.\n\n                Returns:\n                        jittered_box:    jittered    box.\n                '
        rand_numbers = tf.random_uniform([1, 1, 4], minval=(- ratio), maxval=ratio, dtype=tf.float32, seed=seed)
        box_width = tf.subtract(box[(0, 0, 3)], box[(0, 0, 1)])
        box_height = tf.subtract(box[(0, 0, 2)], box[(0, 0, 0)])
        hw_coefs = tf.stack([box_height, box_width, box_height, box_width])
        hw_rand_coefs = tf.multiply(hw_coefs, rand_numbers)
        jittered_box = tf.add(box, hw_rand_coefs)
        jittered_box = tf.clip_by_value(jittered_box, 0.0, 1.0)
        return jittered_box
    with tf.name_scope('RandomJitterBoxes', values=[boxes]):
        boxes_shape = tf.shape(boxes)
        boxes = tf.expand_dims(boxes, 1)
        boxes = tf.expand_dims(boxes, 2)
        distorted_boxes = tf.map_fn((lambda x: random_jitter_box(x, ratio, seed)), boxes, dtype=tf.float32)
        distorted_boxes = tf.reshape(distorted_boxes, boxes_shape)
        return distorted_boxes

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

def random_jitter_boxes(boxes, ratio=0.05, seed=None):