def METHOD_NAME():
    for length, type_converter in product((3, 4), (list, tuple, lambda a: a)):
        iterable = type_converter(range(length))
        color = Color.from_iterable(iterable)
        assert isinstance(color, Color)
        assert color[:3] == (0, 1, 2)
        if length == 4:
            assert color.a == 3
            assert color[3] == 3
        else:
            assert color.a == 255
            assert color[3] == 255