def METHOD_NAME():
    from anyblok import Declarations
    Model = Declarations.Model
    @Declarations.register(Model)
    class Test:
        id = Integer(primary_key=True)
        def foo(self):
            return self.id