def METHOD_NAME(variant_scalar_rgb):
    assert(dr.allclose(mi.warp.square_to_tent([0.5, 0.5]), [0, 0]))
    assert(dr.allclose(mi.warp.square_to_tent([0, 0.5]), [-1, 0]))
    assert(dr.allclose(mi.warp.square_to_tent([1, 0]), [1, -1]))
    check_inverse(mi.warp.square_to_tent, mi.warp.tent_to_square)
    check_warp_vectorization("square_to_tent")