I am getting AttributeError: module 'PIL' has no attribute 'Image'

While on lesson 1 on code line - plot_val_with_title(rand_by_correct(True), “Correctly classified”) i am getting the error - module ‘PIL’ has no attribute ‘Image’. I cant move forward with it , can someone please help me out?


In case someone encounters the same error:
It occurred in my Colab environment as well. I solved it by following the solution in this link:

I did not reinstall PIL by the way
I did restart the runtime.