ImageDataBatch Labeling Issue & General Debugging

Hello all,

Is there a good way to debug the data that I have loaded into an ImageDataBunch to see what labels have been applied to each image? I am attempting to use the ImageDataBunch.from_list() method but my labels are not coming out correctly when i preview the data with show_batch().

The issue seems to readily occur when the classes are extremely imbalanced (ex: 2000 vs 300). Typically I would just try to step through the code an a debugger, but I am not yet up to speed on the appropriate tools to do so with JupyterLab on a google cloud machine.

Here is my notebook showing the error: