def _apply_multi_bbox_augmentation_wrapper(image, bboxes, prob, aug_func, func_changes_bbox, *args):
    'Checks to be sure num bboxes > 0 before calling inner function.'
    num_bboxes = tf.shape(bboxes)[0]
    (image, bboxes) = tf.cond(tf.equal(num_bboxes, 0), (lambda : (image, bboxes)), (lambda : _apply_multi_bbox_augmentation(image, bboxes, prob, aug_func, func_changes_bbox, *args)))
    return (image, bboxes)
Checks to be sure num bboxes > 0 before calling inner function.
def _apply_multi_bbox_augmentation_wrapper(image, bboxes, prob, aug_func, func_changes_bbox, *args):
    
    num_bboxes = tf.shape(bboxes)[0]
    (image, bboxes) = tf.cond(tf.equal(num_bboxes, 0), (lambda : (image, bboxes)), (lambda : _apply_multi_bbox_augmentation(image, bboxes, prob, aug_func, func_changes_bbox, *args)))
    return (image, bboxes)