def METHOD_NAME(self, nonce, request):
    func = self._hooks['exists_nonce']
    if callable(func):
        timestamp = request.timestamp
        client_id = request.client_id
        token = request.token
        return func(nonce, timestamp, client_id, token)
    raise RuntimeError('"exists_nonce" hook is required.')