from tensorflow.examples.tutorials.mnist import input_data
#from tensorflow.keras.datasets.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/") this code giving error
in tensorflow 2.5
ModuleNotFoundError                       Traceback (most recent call last)
 in 
----> 1 from tensorflow.examples.tutorials.mnist import input_data
2 #from tensorflow.keras.datasets.mnist import input_data
3 mnist = input_data.read_data_sets("/tmp/data/")
c:\users\eshant\appdata\local\programs\python\python38\lib\site-packages\tensorflow\examples\tutorials\mnist_init_.py in 
19 from future import print_function
20
—> 21 from tensorflow.examples.tutorials.mnist import input_data
22 from tensorflow.examples.tutorials.mnist import mnist
c:\users\eshant\appdata\local\programs\python\python38\lib\site-packages\tensorflow\examples\tutorials\mnist\input_data.py in 
27 from six.moves import xrange  # pylint: disable=redefined-builtin
28 import tensorflow as tf
—> 29 from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets