def straight_backoff(count):
    return (1, 2, 5)[count] if count < 3 else 5 * count - 5
Wait 1, 2, 5 seconds. All retries after the 3rd retry will wait 5*N-5 seconds.
dataset/ETHPy150Open ionelmc/python-aspectlib/src/aspectlib/contrib.py/straight_backoff