def run_with_network_prediction_list(coroutine, logits):
    """Runs a coroutine with a list of responses.

    Args:
        coroutine: Coroutine yielding network requests.
        logits (list): List of responses to send in sequence to the coroutine.

    Returns:
        Return value of the coroutine.
    """
    try:
        next(coroutine)
        for pred in logits:
            coroutine.send(pred)
        assert False, 'No more predictions, coroutine should return.'
    except StopIteration as e:
        return e.value