Stuck in organizing the labels [class subfolders]

Hello,
Please help me with the organizing, I am not sure how to organize the images into their classes.

I tried transforming the ‘.mat’ file into pandas table, but got stuck there.

Thank you!