[DataPipe] adding serialization test for all core IterDataPipes (#71456)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71456
Related to https://github.com/pytorch/data/issues/172
cc VitalyFedyunin ejguan NivekT
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D33668748
Pulled By: NivekT
fbshipit-source-id: ea2085d5ed47533ca49258cc52471373c6ae1847
(cherry picked from commit d5f6fde1d08bf77789176930cf4dc7faa7a6b5a3)