improve datapipe deprecation warnings (#74685)
Summary:
Fixes pytorch/data#322.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74685
Reviewed By: mrshenli
Differential Revision: D35143494
Pulled By: NivekT
fbshipit-source-id: b87c312a93ea6a8ce2090da961312cb7e2cbc2eb
(cherry picked from commit cb74b81a822cf5a551f16b454a07430dfabaaa36)