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