C1W2_Assignment.ipynb On the inconsistency of the front and back labels

In Figure 1, the image with index=0 is correctly labelled as 5, after passing it through the untrained model, the output is labelled as 3 (Figure 2), and after re-running it again, the output is labelled as some other number (which isn’t the correct number anyway), what is the reason for this? I’m a beginner and I can’t analyse the problem, it might not be the way I perceive it, thanks for the answer!

To help me assist you,

Please click on my name to start a private message. Then, attach your notebook as a .ipynb file. Please note that mentors cannot access your Coursera Jupyter workspace, so sending the notebook in a .ipynb format is essential.

Do annotate your notebook with comments and output for me to better understand the question.