code: def is_available(self):
          
          # if the availability flag is raised, return True immediately.
          # NOTE: subsequent API failures will lower this flag. we do this here
          # to ensure we don't keep hitting Cuckoo with requests while
          # availability is there.
          if self.server_available:
              return True
  
          # otherwise, we have to check with the cloud.
          else:
              try:
                  response = self._request("cuckoo/status")
  
                  # we've got cuckoo.
                  if response.status_code == 200:
                      self.server_available = True
                      return True
  
              except sandboxapi.SandboxError:
                  pass
  
          self.server_available = False
          return False
docs: Determine if the Cuckoo Sandbox API servers are alive or in maintenance mode.
  
          :rtype:  bool
          :return: True if service is available, False otherwise.