[torch.distributed.rpc] Add WorkerInfo python repr magic method (#40004)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40004
close https://github.com/pytorch/pytorch/issues/39965
ghstack-source-id: 105891281
Test Plan:
buck test mode/opt-asan //caffe2/test:jit -- 'test_vae_quantized \(jit\.test_models\.TestModels\)'
buck test mode/dev-nosan //caffe2/test/distributed/rpc/:rpc_fork
Differential Revision: D5696583
fbshipit-source-id: 19570414dc833c38fcd1ad38d2f0a816dbf51743