code: def prepare_image(img, im_shape, pixel_means=PIXEL_MEANS):
      """
      Given an image from the dataloader, undoes the transformations.
      """
      img = img.reshape((3, im_shape[0], im_shape[1]))
      # transpose from CHW to H W C
      img = img.transpose(1, 2, 0) + pixel_means
      # reorder color channel
      img = img[:, :, ::-1]
  
      img = img.astype("uint8")
  
      return Image.fromarray(img)
  
file_path: neon/examples/ssd/util/util.py
imports: import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_image(img, im_shape, pixel_means) and returns: Image