Is there any particular reason why you’re considering taking a position that requires 2 years’ worth of training— just to leave it after training is complete?
Is it the sort of thing where you’re trying to check that “2 years’ experience” box in a particular field, so that you can move on to the next level in that field? If so, is there a reason why you don’t intend to allow the people who are training you to profit from their investment in you?
Your time is your own, and your labor is your own, but if they’re telling you straight-out, “We’re grooming people to replace these people three years down the line,” it’s not good form to jump ship the moment you’re clear and go do something else.
Anecdote: My old employer (a municipality) had a tuition reimbursement program. They had a problem with people using their program to go to school-- and once they had that degree, they ran off and got a job somewhere else. So they put in a requirement where you had to give back a certain percentage of what they had paid, depending on when you left within a 2-year term of accepting their money. They helped me get my Master’s through the program-- but there was a hiring freeze in the department who used people with my degree. So I did volunteer work while I waited for the thaw. Mostly, they ended up absorbing Katrina refugees, but they pretty much told me, “Why should we hire you when you do such awesome work for free!” My 2 years was up in September, and I had a new job lined up by January… but the difference being, for four years, I gave them every opportunity to keep me.