[DataLoader] Add nesting_level argument to map and filter (#59498)
Summary:
This PR implements the .map and .filter APIs for IterDataPipe.
[DataPipes] Make .map of DataPipe sensitive to nested_level argument https://github.com/pytorch/pytorch/issues/58145
[DataPipes] Make .filter of DataPipe sensitive to nested_level argument https://github.com/pytorch/pytorch/issues/58147
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59498
Reviewed By: ejguan
Differential Revision: D28964280
Pulled By: NivekT
fbshipit-source-id: b1ee6cafa3953093ebd7bf30eacc80c3ef7cd190