def METHOD_NAME(values):
    target_successes = 4
    value_factory = BatchValueFactory(
        values=values, required_successes=target_successes
    )
    for i in range(0, NUM_VALUES // target_successes):
        value_list = value_factory(successes=0)
        assert (
            len(value_list) == target_successes
        ), "list returned is based on successes"
        assert len(values) == NUM_VALUES, "values remained unchanged"
    # list all done but get list again
    value_list = value_factory(successes=target_successes)  # successes achieved
    assert not value_list, "successes achieved"
    # list all done but get list again
    value_list = value_factory(
        successes=1
    )  # not enough successes but list is now empty
    assert not value_list, "successes not achieved, but no more values available"