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