def bbox_wrapper(func):
    'Adds a bboxes function argument to func and returns unchanged bboxes.'

    def wrapper(images, bboxes, *args, **kwargs):
        return (func(images, *args, **kwargs), bboxes)
    return wrapper
Adds a bboxes function argument to func and returns unchanged bboxes.
def bbox_wrapper(func):
    

    def wrapper(images, bboxes, *args, **kwargs):
        return (func(images, *args, **kwargs), bboxes)
    return wrapper