def _train_and_save(obj, cache, data, print_updates):
obj.train(data)<EOL>if print_updates:<EOL><INDENT>print('<STR_LIT>' + obj.name + '<STR_LIT:.>')<EOL><DEDENT>obj.save(cache)<EOL>
Internal pickleable function used to train objects in another process