code: def draw_boxes(img, gt_boxes, boxes):
      """
      Given an img, draws the gt_boxes as green,
      and the predicted boxes as red.
      """
      draw = ImageDraw.Draw(img)
  
      for box in gt_boxes:
          draw_rectangle(draw, box, "green", 2)
  
      for box in boxes:
          box = np.array(box[:4], dtype=np.float32)
          draw_rectangle(draw, box, "red", 2)
  
      return img
  
file_path: neon/examples/ssd/util/util.py
imports: import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 4 for calling a global function with example usage: draw_boxes(img, gt_boxes, boxes) and returns: img