Problem with tensor flow Notebook --> Failed test case: model has incorrect type. Expected: <class 'keras.engine.training.Model'>, but got: <class 'NoneType'>

Use tf. with keras.

And please move your post to the relevant course as described here.