If you’ve tried running the assignment on colab, you’d realize the colab only supports tensorflow versions >= 2.5.0 , whereas you need to run the assignment on <=tensorflow 2.2.0.
Kaggle was solution to this assignment. so you can check out this notebook to see a sample exercise. keras-tensorflowjs | Kaggle
to ensure you are running on tensorflow 2.2.0, use the code:
!pip uninstall tensorflow -y
!pip install tensorflow==2.2
import tensorflow as tf
print(‘\u2022 Using TensorFlow Version:’, tf.version)