Multiple images one label

Hi, I am doing a classification task where each word is associated to several images (10). However, the images are not in order in the image folder so indexing won’t work, I have a csv file with all the mappings.
How should the dataset look like so that the model associates each word with the corresponding images?