Agh Yes!
I printed the idxs_mask to check and see if it was capturing the misclassified images.  And yes you’re right, it was empty because I was not getting misclassified images in the last loop but appending the results from all the loops captured what I wanted.
Thank you for your help!