code: def is_throttled(e):
      
      return True if (hasattr(e, 'response') and
                      e.response is not None and
                      'Error' in e.response and
                      e.response['Error']['Code'] in ['Throttling', 'RequestLimitExceeded', 'ThrottlingException']) else \
          False
docs: Determines whether the exception is due to API throttling.
  
      :param e:                           Exception raised
      :return:                            True if it's a throttling exception else False