human
I wrote the below code

    def wrapper(context, snapshot_id, *args, **kwargs):
        db.api.snapshot_get(context, snapshot_id)
        return f(context, snapshot_id, *args, **kwargs)
    wrapper.__name__ = f.__name__
    return wrapper

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

def require_snapshot_exists(f):