Foward fix sharding bug for DL (#79124) (#79129)
This PR solves a bug introduced by #79041
`torch.utils.data.graph_settings.apply_sharding` changes the datapipe in-place and returns `None`
It would resolve the Error in TorchData. See: https://github.com/pytorch/data/actions/runs/2461030312
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79124
Approved by: https://github.com/VitalyFedyunin