human
I wrote the below code

    @wraps(view_func)
    def inner(request, *args, **kwargs):
        usage_key = kwargs.get('usage_key_string')
        if (usage_key is not None):
            try:
                UsageKey.from_string(usage_key)
            except InvalidKeyError:
                raise Http404
        response = view_func(request, *args, **kwargs)
        return response
    return inner

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

def ensure_valid_usage_key(view_func):