function isThrottlingRetryResponse(response) {
    return Number.isFinite(getRetryAfterInMs(response));
}
The helper that transforms string to specific character encoded bytes array.
@param value - the string to be converted
@param format - the format we use to decode the value
@returns a uint8array