def _preprocess_image(self, inputs: list[Image]) -> List[Tensor]:
        """
        Preprocess the images using the image preprocessor.
        Args:
            inputs: A list of images to preprocess.

        Returns:
            A list of preprocessed images in the form of tensors.
            Each tensor has the shape (N, 3, H, W) where N is the batch_size,
             H and W are the height and width of the image.
        """
        # Need unsqueeze(0) to add the batch dimension
        return [self.image_preprocessor(image).unsqueeze(0).to(self.device) for image in inputs]

        Preprocess the images using the image preprocessor.
        Args:
            inputs: A list of images to preprocess.

        Returns:
            A list of preprocessed images in the form of tensors.
            Each tensor has the shape (N, 3, H, W) where N is the batch_size,
             H and W are the height and width of the image.
        
src/marqo/inference/native_inference/embedding_models/open_clip_model.py