def METHOD_NAME():
    class MyScalar:
        def __init__(self) -> None:
            self.scalar = 5
        @dace.method
        def method(self):
            self.scalar = 1
    obj = MyScalar()
    with pytest.raises(DaceSyntaxError):
        obj.method()