How to interlink specific image file with the prediction the model does?

As I understand fastai lets us get torch.Tensor with class predictions ( interp.pred_class ) where interp.pred_class[0] gives predicted class for the first element in the validation set and torch.Tensor with actual values ( interp.y_true ), where interp.y_true[0] gives true class of this first element. But is there similar method to find out corresponding file the prediction was made for? Like interp.filename[0] that will return ‘\class_1\image001.jpg’