How to take index-wise predictions when using ImageDataBunch

I am using a ImageDataBunch to create the data for the learner. After learner is trained, I want it to predict the result for each test image in test data bunch, with its respective image name (ID).

Problem comes because each time it take different order of data when it read image data. I have to run same model in 2 different note books. Therefore, either I need to get predictions in the same order, or have the predictions with its respective name.

Is there a way for it? Please Help Me…
Thank you in advance.