Tried it. I get this:
img = incorrect_examples[0][idx]
----> 9     img = img.squeeze(0)
     10     img = img/2 + 0.5
     11     img = np.clip(img, 0, 1)

ValueError: cannot select an axis to squeeze out which has size not equal to one