def METHOD_NAME(variants_vec_rgb):
    scene =  mi.load_dict({
        "type" : "scene",
        "foo" : {
            "type" : "linearcurve",
            "filename" : "resources/data/common/meshes/curve.txt",
        }
    })
    # Ray inside the curve
    ray = mi.Ray3f(o=[0, 0, 0], d=[0, 0, -1])
    si = scene.ray_intersect(ray)
    assert dr.all(~si.is_valid())
    # Ray outside the curve
    ray = mi.Ray3f(o=[0, 0, 2], d=[0, 0, -1])
    si = scene.ray_intersect(ray)
    assert dr.all(si.is_valid())