Earlier this code was for TF 1.10.0, then I upgraded the code as below for TF 2.2.0.
Using Tensorflow 2.2.0, keras-applications 1.0.8, keras preprocessing: 1.1.2