NameError: name ‘TimeDistributed’ is not defined

from keras.layers.wrappers import TimeDistributed

Here is what the above code is Doing:
1. We’re creating a Sequential model.
2. We’re adding a TimeDistributed layer with 128 units.
3. We’re adding a dropout layer to prevent overfitting.
4. We’re adding an LSTM layer with 128 units.
5. We’re adding a dropout layer to prevent overfitting.
6. We’re adding a Dense layer with 10 units and a softmax activation function.
7. We’re compiling the model with a categorical crossentropy loss function and an Adam optimizer.
8. We’re training the model for 10 epochs.
9. We’re evaluating the model on the test data.