With PyCharm, you can import ImageDataGenerator like this.
from keras._tf_keras.keras.preprocessing.image import ImageDataGenerator