Difficulty in Loading Data

So the way my data is stored is like this:

  • Training Frames

    • vid_folder_1

      -frm (this folder contains all frames of video 1)

      -f1.csv (this file contains labels of all the frames inside the frm folder)

    • vid_folder_2

      • frames (this folder contains all frames of video 2)
      • f2.csv

both the folders(frames,f2.csv) are inside the video_folder_2 which is itself inside the Training Frames folder
so how should I create a dataset with this form of arrangement?