Unify the output pathname of archive reader and extractor (#65424)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65424
This PR is re-implementation for https://github.com/facebookexternal/torchdata/pull/93
Same PR has landed into torchdata https://github.com/facebookexternal/torchdata/pull/157
Test Plan: Imported from OSS
Reviewed By: soulitzer
Differential Revision: D31090447
Pulled By: ejguan
fbshipit-source-id: 45af1ad9b24310bebfd6e010f41cff398946ba65