Most of the imports used in the examples are from Tensorflow 1.x and are not compatible with Tensorflow 2.x... Examples of faulty imports include, TensorFlow.contrib (no longer exists in TF 2.0+)....