human
I wrote the below code

    def strict_random_crop_image_fn():
        return _strict_random_crop_image(image, boxes, labels, masks=masks, keypoints=keypoints, min_object_covered=min_object_covered, aspect_ratio_range=aspect_ratio_range, area_range=area_range, overlap_thresh=overlap_thresh)
    if (random_coef < sys.float_info.min):
        result = strict_random_crop_image_fn()
    else:
        do_a_crop_random = tf.random_uniform([], seed=seed)
        do_a_crop_random = tf.greater(do_a_crop_random, random_coef)
        outputs = [image, boxes, labels]
        if (masks is not None):
            outputs.append(masks)
        if (keypoints is not None):
            outputs.append(keypoints)
        result = tf.cond(do_a_crop_random, strict_random_crop_image_fn, (lambda : tuple(outputs)))
    return result

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

def random_crop_image(image, boxes, labels, masks=None, keypoints=None, min_object_covered=1.0, aspect_ratio_range=(0.75, 1.33), area_range=(0.1, 1.0), overlap_thresh=0.3, random_coef=0.0, seed=None):