TensorFlow imports are different from documentation

I need to import mnist but i can’t find it.
Also i have another package structure, python>keras instead of normal keras, what’s wrong with my pc?


Welcome to the Tensorflow Forum!

You can import mnist as shown in below

import tensorflow as tf
mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()

Please refer to the below screenshot for mnist source file

Thank you!