def METHOD_NAME(process: Popen, timeout: float = 5):
    if not utils.repeat_until(
            lambda: process.poll() is not None, timeout=timeout):
        raise TimeoutError(
            f"Autonity did not terminate within {timeout} seconds")