import tensorflow as tf from tensorflow.keras.utils import to_categorical from tensorflow.keras.applications import ResNet50, MobileNetV2 from tensorflow.keras.application…