<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def timeout_two_stage( retries: int, timeout1: int, timeout2: int, ) -> Iterable[int]: """ Timeouts generator with a two stage strategy Timeouts start spaced by `timeout1`, after `retries` increase to `timeout2` which is repeated indefinitely. """

    for _ in range(retries):
        yield timeout1
    while True:
        yield timeout2