Dataloader to send image and metadata

I have a set of images and for each image some associated metadata. The image file paths and the metadata are located in a CSV (with the metadata on the same row as the image path). I want to have an DataLoader which sends this to a custom PyTorch model and then have the PyTorch model use the images and the metadata. I already know how to have the model use the metadata along with the images, but getting the metadata and the image to the model at the same time is pretty challenging. How would I go about doing this?