RandomFlip not in tfl error

Hi, when I try to call tfl.RandomFlip() or tf.keras.layers.RandomFlip() or anything else like it, I keep getting the following error.

However, in the RandomFlip documentation, it says the following, and so I’m not sure how I can fix the error I’m getting.

Any help would be greatly appreciated!

It depends on the version of tensorflow.

In the recent release, it is “tf.keras.layers.RandomFlip”, but in the older version of Tensorflow, it is " tf.keras.layers.experimental.preprocessing.RandomFlip".

I think you refer the document for the latest version of TF, but, Coursera platform uses the older one.

Hope this helps.

Thank you! The older version worked