def METHOD_NAME(self, r, kwargs):
    self.proxy_auth = http_proxy_digest.HTTPProxyDigestAuth(
        username=self.proxy_username,
        password=self.proxy_password)
    try:
        self.auth.init_per_thread_state()
    except AttributeError:
        pass
    return self.proxy_auth.handle_407(r, **kwargs)