def METHOD_NAME(variants_vec_rgb):
    pytest.importorskip("numpy")
    import numpy as np
    new_control_points = np.array([
        1, 0, 0, 1,
        2, 0, 0, 1,
        3, 0, 0, 1,
        4, 0, 0, 1,
    ]).reshape((4, 4))
    new_control_points = mi.Point4f(new_control_points)
    s = mi.load_dict({
        "type" : "linearcurve",
        "filename" : "resources/data/common/meshes/curve.txt",
    })
    params = mi.traverse(s)
    params['control_points'] = dr.ravel(new_control_points)
    params.update()
    params = mi.traverse(s)
    assert dr.allclose(dr.ravel(new_control_points), params['control_points'])