code: def draw_predictions(img, boxes, scores):
      """
      Args:
          boxes: kx4
          scores: kxC
      """
      if len(boxes) == 0:
          return img
      labels = scores.argmax(axis=1)
      scores = scores.max(axis=1)
      tags = [
          "{},{:.2f}".format(cfg.DATA.CLASS_NAMES[lb], score)
          for lb, score in zip(labels, scores)
      ]
      return viz.draw_boxes(img, boxes, tags)
  
file_path: tensorpack/examples/FasterRCNN/viz.py
imports: import numpy
  from tensorpack.utils import viz
  from tensorpack.utils.palette import PALETTE_RGB
  from config import config
  from utils.np_box_ops import area
  from utils.np_box_ops import iou
  from common import polygons_to_mask
label_desc: Use image node_id 3 for calling a global function with example usage: draw_predictions(img, boxes, scores) and returns: viz, img