code: def preprocess(self, image_path):
      from PIL import Image as pil_image
  
      img = pil_image.open(image_path)
      img = img.resize((self.args.size, self.args.size))
      self.data = img
  
file_path: MMdnn/mmdnn/conversion/examples/coreml/imagenet_test.py
imports: import argparse
  import numpy
  import sys
  import os
  from mmdnn.conversion.examples.imagenet_test import TestKit
  import coremltools
label_desc: Use image node_id 2 for calling the TestCoreML obj's underlying member method code with example usage: obj.preprocess(image_path) without return types