code: def _can_refresh_check(self, check_id):
          
          try:
              refresh_status = \
                  self.conn.describe_trusted_advisor_check_refresh_statuses(
                      checkIds=[check_id]
                  )
              logger.debug("TA Check %s refresh status: %s", check_id,
                           refresh_status['statuses'][0])
              ms = refresh_status['statuses'][0]['millisUntilNextRefreshable']
              if ms > 0:
                  logger.warning("Trusted Advisor check cannot be refreshed for "
                                 "another %d milliseconds; skipping refresh and "
                                 "getting check results now", ms)
                  return False
              return True
          except Exception:
              logger.warning("Could not get refresh status for TA check %s",
                             check_id, exc_info=True)
          # default to True if we don't know...
          return True
docs: Determine if the given check_id can be refreshed yet.
  
          :param check_id: the Trusted Advisor check ID
          :type check_id: str
          :return: whether or not the check can be refreshed yet
          :rtype: bool