code: def get_image(
      image_path,
      image_size,
      is_crop=True,
      resize_w=64,
      is_grayscale=False,
  ):
      return transform(
          imread(image_path, is_grayscale),
          image_size,
          is_crop,
          resize_w,
      )
  
file_path: BigDL/apps/variational-autoencoder/utils.py
imports: import numpy
  import imageio
  from PIL import Image
label_desc: Use image node_id 5 for calling a global function with example usage: get_image(image_path, image_size, is_crop, resize_w, is_grayscale) and returns: transform