def METHOD_NAME(V):
    f = Function(V)
    with pytest.raises(RuntimeError):
        f.interpolate(Constant((1, 2)))
    VV = VectorFunctionSpace(V.mesh(), 'CG', 1)
    f = Function(VV)
    with pytest.raises(RuntimeError):
        f.interpolate(Constant((1, 2)))
    VVV = TensorFunctionSpace(V.mesh(), 'CG', 1)
    f = Function(VVV)
    with pytest.raises(RuntimeError):
        f.interpolate(Constant((1, 2)))