add optional request headers to torch.hub (#39740)
Summary:
Closes https://github.com/pytorch/pytorch/issues/39657.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39740
Differential Revision: D22005273
Pulled By: ailzhang
fbshipit-source-id: eb33147386fb4befb0278c788111306aa878ca39