class_docstr: A class object for the data handling activities of Image Classification
  Task and returns a KServe compatible response.
  
  Args:
      kserve (class object): The Model class from the KServe
      modeule is passed here.
docstr: Pre-process activity of the Image Input data.
  
  Args:
      inputs (Dict): Kserve http request
  
  Returns:
      Dict: Returns the request input after converting it into a tensor
docstr_tok: ["Pre-process","activity","of","the","Image","Input","data",".","Args",":","inputs","(","Dict",")",":","Kserve","http","request","Returns",":","Dict",":","Returns","the","request","input","after","converting","it","into","a","tensor"]
code: def preprocess(self, inputs: Dict) -> Dict:
      """Pre-process activity of the Image Input data.
  
      Args:
          inputs (Dict): Kserve http request
  
      Returns:
          Dict: Returns the request input after converting it into a tensor
      """
      return {
          "instances": [
              image_transform(instance)
              for instance in inputs["instances"]
          ]
      }
  
file_path: serve/kubernetes/kserve/image_transformer/image_transformer/image_transformer.py
imports: import base64
  import io
  import json
  import logging
  from typing import Dict, List
  import kserve
  import torchvision.transforms
  import tornado
  from kserve.model import Model
  from PIL import Image
label_desc: Use image node_id 2 for calling the ImageTransformer obj's underlying member method code with example usage: obj.preprocess(inputs) and returns: dict