human
Complete this python program:
def auth_required(view_func):
assistant
#Here is the Python code you requested.

    """Return a HttpResponseBadRequest if not authed.
    """
    def wrapper(request, *args, **kwargs):
        if (not request.twitter.authed):
            return http.HttpResponseBadRequest()
        return view_func(request, *args, **kwargs)
    return wrapper