src/transformers/pipelines/image_classification.py/ImageClassificationPipeline/preprocess
class ImageClassificationPipeline:    def preprocess(self, image):
        image = self.load_image(image)
        model_inputs = self.feature_extractor(images=image, return_tensors="pt")
        return model_inputs