code: def _get_limit_check_id(self):
          
          logger.debug("Querying Trusted Advisor checks")
          try:
              checks = self.conn.describe_trusted_advisor_checks(
                  language='en'
              )['checks']
          except ClientError as ex:
              if ex.response['Error']['Code'] == 'SubscriptionRequiredException':
                  logger.warning(
                      "Cannot check TrustedAdvisor: %s",
                      ex.response['Error']['Message']
                  )
                  self.have_ta = False
                  return (None, None)
              else:
                  raise ex
          for check in checks:
              if (
                              check['category'] == 'performance' and
                              check['name'] == 'Service Limits'
              ):
                  logger.debug("Found TA check; id=%s", check['id'])
                  return (
                      check['id'],
                      check['metadata']
                  )
          logger.debug("Unable to find check with category 'performance' and "
                       "name 'Service Limits'.")
          return (None, None)
docs: Query currently-available TA checks, return the check ID and metadata
          of the 'performance/Service Limits' check.
  
          :returns: 2-tuple of Service Limits TA check ID (string),
            metadata (list), or (None, None).
          :rtype: tuple