torch.utils.collect_env.run torch.utils.collect_env.run(command) Return (return-code, stdout, stderr). Назадtorch.utils.collect_env.pretty_str