def _generate_delays(max_tries):
    if max_tries >= 1:
        yield 0
        for retry_no in range(1, max_tries):
            next_delay = (random.random() + 1) * 2 ** (retry_no - 1)
            yield min((next_delay, 15))
dataset/ETHPy150Open boto/requestbuilder/requestbuilder/service.py/_generate_delays/original