human
I wrote the below code

    @functools.wraps(f)
    def wrapper(context, volume_id, *args, **kwargs):
        if (not resource_exists(context, models.Volume, volume_id)):
            raise exception.VolumeNotFound(volume_id=volume_id)
        return f(context, volume_id, *args, **kwargs)
    return wrapper

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

def require_volume_exists(f):