Set model mode to train or test.
DGSEngine.set_model_mode()
dgs.models.engine.dgs_engine.DGSEngine.save_model
dgs.models.engine.dgs_engine.DGSEngine.terminate