code: def is_locked(self, request: AxesHttpRequest, credentials: dict = None) -> bool:
          
  
          if settings.AXES_LOCK_OUT_AT_FAILURE:
              return self.get_failures(request, credentials) >= settings.AXES_FAILURE_LIMIT
  
          return False
docs: Checks if the request or given credentials are locked.