code: def preprocess_v(img, w, h):
      img = cv2.resize(img, (w, h), cv2.INTER_LINEAR).astype(np.float32)
      img_mean = np.array([0.5, 0.5, 0.5]).reshape((3, 1, 1))
      img_std = np.array([0.5, 0.5, 0.5]).reshape((3, 1, 1))
      img = img.transpose((2, 0, 1)) / 255
      img -= img_mean
      img /= img_std
      return img
  
imports: import os
  import time
  from collections import OrderedDict
  import cv2
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: preprocess_v(img, w, h) and returns: img