def METHOD_NAME():
    class MyOperation(ops.Node):
        arg: ir.IntegerValue
        def to_expr(self):
            return ir.IntegerScalar(self)
    MyOperation(ir.literal(5))
    with pytest.raises(ValidationError):
        MyOperation(ir.literal("string"))