text: smart_resize: If True, the resizing function used will be tf.keras.preprocessing.image.smart_resize, which preserves the aspect ratio of the original image by using a mixture of resizing and cropping. If False (default), the resizing function is tf.image.resize, which does not preserve aspect ratio.