Reformat test_c10d_nccl.py and distributed_test.py (#62388)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62388
as title
ghstack-source-id: 134626247
Test Plan: N/A
Reviewed By: rohan-varma
Differential Revision: D29984086
fbshipit-source-id: 0960e5acc379ccdf08813387e11d3fb0a5f0e4b0