Company should be specific about training involved,cost of training,actual training(not just posting abroad for work and showing it as training) and further period of service in company for each employee.
Agreement can be drafted by a good lawyer so that it does not fail if challenged in court of law.
Read this link
Legally India: Court summons issued for breaking training bond (1/1)
15th April 2016 From India, Pune
For the sake of argument, even if there is an agreement between the employer and employee and if the employee fails to serve the stipulated term, then the employer is entitled to get compensated by an amount. However, in case the employee fails to serve such term, the employer cannot deduct/ recover such amount from the statutory dues of the employees. The only option left with an employer is to challenge the violation of such agreement before a civil court which is both expensive and time consuming.
For similar advice on labour laws, check this post - https://labourlawhub.com/2016/02/19/your-company-cannot-stop-you-from-joining-its-competitor/
15th April 2016 From India, Kolkata
16th April 2016 From India, Vellore