human
I wrote the below code

    def wrapper(context, volume_id, *args, **kwargs):
        db.volume_get(context, volume_id)
        return f(context, volume_id, *args, **kwargs)
    wrapper.__name__ = f.__name__
    return wrapper

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

def require_volume_exists(f):