def METHOD_NAME(variant, V, fs_kind):
    x, y, z = SpatialCoordinate(V.ufl_domain())
    val = {"linear": z, "sin": sin(pi*z)}[variant]
    ret = {
        "scalar": val,
        "vector": as_vector((val, 0, 0)),
        "tensor": as_tensor(((val, 0, 0), (0, 0, 0), (0, 0, 0)))
    }
    return ret[fs_kind]