tf.keras.applications.imagenet_utils.preprocess_input

TensorFlow 2 version View source on GitHub