example["image"] = image
return example
```  
For improved performance on reading and writing large datasets stored in the cloud, this script uses the [WebDataset](https://github.com/webdataset/webdataset) format to create a preprocessing pipeline to apply transforms and create a dataset and dataloader for training. Images are processed and fed to the training loop without having to download the full dataset first.  
```py
processing_pipeline = [
wds.decode("pil", handler=wds.ignore_and_continue),