def will_remain_enabled_for(self, time=60):
    """Returns true if it will remain enabled for the specified amount of time.

    Args:
      time: Number of seconds in the future to look when checking for scheduled
        downtime.

    Returns:
      True if there is no scheduled downtime for the specified capability
      within the amount of time specified.

    Raises:
      UnknownCapabilityError, if a specified capability was not recognized.
    """
    config = self._get_status()

    status = config.summary_status()
    if status == IsEnabledResponse.ENABLED:
      return True
    elif status == IsEnabledResponse.SCHEDULED_NOW:
      return False
    elif status == IsEnabledResponse.SCHEDULED_FUTURE:
      if config.has_time_until_scheduled():
        return config.time_until_scheduled() >= time
      else:
        return True
    elif status == IsEnabledResponse.DISABLED:
      return False
    else:
      return False
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/capabilities/__init__.py/CapabilitySet.will_remain_enabled_for/original