Dataset/Dataloader class from cosmos database

I’m trying to load an image dataset when the images are stored in an Azure Cosmos Database. I am deploying a model on an Azure instance, and have the images in blob storage in a Cosmos DB.

Is there any way to do this directly? (Or has anyone else tried this?) An alternative approach would be to pull all of the images from the DB into the instance, and then load the data like I normally would. But I assume this would be slower and I’d like to avoid the extra step if there is a work around.

Thanks in advance.