code: def preprocess(img):
      img = resizeimage.resize_cover(img, [224, 224], validate=False)
      img_ycbcr = img.convert("YCbCr")
      img_y_0, img_cb, img_cr = img_ycbcr.split()
      img_ndarray = np.asarray(img_y_0)
      img_4 = np.expand_dims(
          np.expand_dims(img_ndarray, axis=0), axis=0
      )
      img_5 = img_4.astype(np.float32) / 255.0
      return img_5, img_cb, img_cr
  
file_path: singa/examples/onnx/superresolution.py
imports: import os
  import numpy
  from PIL import Image
  from resizeimage import resizeimage
  from singa import device
  from singa import tensor
  from singa import sonnx
  import onnx
  from utils import download_model, check_exist_or_download
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: preprocess(img) and returns: img_5,  img_cb,  img_cr