def METHOD_NAME():
    @register(Model)
    class Address:
        id = Integer(primary_key=True)
        persons = One2Many(model="Model.Person")
    @register(Model)
    class Person:
        id = Integer(primary_key=True)
        address_1 = Many2One(model=Model.Address)
        address_2 = Many2One(model=Model.Address)