Reland Fix issue 38095 TODO in test_multiprocessing.py (#90741)
Fix TODO related to https://github.com/pytorch/pytorch/issues/38095
Reland of https://github.com/pytorch/pytorch/pull/90335
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90741
Approved by: https://github.com/clee2000