ImportError: cannot import name 'ImageDataGenerator' from 'keras.preprocessing.image' (/opt/conda/lib/python3.10/site-packages/keras/preprocessing/image/init.py)
Occurred when running in Kaggle. The issue is not present when running in google collab
It should ideally run without throwing any error
Instead of this:
Tried this and working as expected: