[ml-agents]Transfer of permissions for ml-agents training. Resume and stop.

如何暂停训练课程并执行其他脚本。直到再次检测到目标,训练才从断点恢复,并将权力移交给强化学。如何在代码中执行此操作?

How to pause a training session and execute other scripts. It is not until the target is detected again that the training is resumed from the breakpoint and the authority is handed over to the strong chemistry. How can I do this in code?