[DataPipe] Adding serialization test for all MapDataPipe (#73921)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/73921
Test Plan: Imported from OSS
Reviewed By: ejguan
Differential Revision: D34732286
Pulled By: NivekT
fbshipit-source-id: 893af2fbb83feb1bae226d3205105de5d3836378
(cherry picked from commit f44fd3c5210d0afdbf826e3b7e7fbe2ec216c3b7)