Loading image dataset having images and dataset labels in separate files

I have two files:

train (folder) : it has images for training
train.csv: it has 2 columns i.e “imageid” and “imagelabel”

How to load this dataset in ImageDataloader in fastai and use a splitter for train and val dataset splitting?

You can try ImageDataLoaders.from_df()

Example here: