Trainee dies in horse race imitation