def METHOD_NAME(request):
    """
    The DocuSign callback view, where users are redirected when they finish a flow
    on DocuSign's site.
    This is the app's only callback; it needs to be registered with DocuSign or they
    will refuse to redirect the user to it.
    To handle a callback, add the dotted name of a function to the
    `DOCUSIGN_CALLBACK_HANDLERS` setting; it will be passed a Django HttpRequest,
    and if it returns a HttpResponse, that will be the response of this view. It
    can also return None if it doesn't think the request applies to it.
    """
    if not validate_and_clear_docusign_state(request):
        return HttpResponseForbidden("Invalid state")
    # See if this is part of the DocuSign consent flow, in which case we'll handle
    # it ourselves.
    code = request.GET.get("code")
    if code:
        if core.validate_and_set_consent_code(code):
            return HttpResponse("Thank you for your consent. You may close this window.")
        return HttpResponse("Your account does not seem to have the privileges we need.")
    # Run the response through our call handlers, to see if one of them handles it.
    response = call_callback_handlers(request)
    if response:
        return response
    # TODO: Log an error.
    return HttpResponse(
        "Thanks for doing whatever you just did on DocuSign, " "but I'm not sure what to do now."
    )