def METHOD_NAME(self, request, *args, **kwargs):
    if self._predict_quota_check(request.data, None):
        lockfn = request.event.lock
    else:
        lockfn = contextlib.suppress  # noop context manager
    with lockfn():
        return super().METHOD_NAME(request, *args, **kwargs)