def METHOD_NAME(container: docker.models.containers.Container, additional_wait: int = 0, retries: int = 5):
    success = False
    for _ in range(retries):
        container.reload()
        if container.status == 'running':
            success = True
            break
        sleep(0.5)
    if not success:
        raise TimeoutError
    if additional_wait:
        sleep(additional_wait)