def _assert_same(values):
    """Assert that all values are identical and return the unique value."""
    assert len(values) > 0
    first, rest = values[0], values[1:]
    for v in rest:
        assert v == first
    return first
def _assert_same ( values ) : assert len ( values ) > 0 first , rest = values [ 0 ] , values [ 1 : ] for v in rest : assert v == first return first
Assert that all values are identical and return the unique value.