code: def draw_detections(font_path, im, dets, thresh, names, classes):
      "Draw the markings around the detected region"
      for det in dets:
          valid, detection = get_detections(
              im, det, thresh, names, classes
          )
          if valid:
              rgb = detection["rgb"]
              label = _get_label(
                  font_path, "".join(detection["labelstr"]), rgb
              )
              _draw_box_width(
                  im,
                  detection["left"],
                  detection["top"],
                  detection["right"],
                  detection["bot"],
                  detection["width"],
                  rgb[0],
                  rgb[1],
                  rgb[2],
              )
              _draw_label(
                  im,
                  detection["top"] + detection["width"],
                  detection["left"],
                  label,
                  rgb,
              )
  
imports: from __future__ import division
  import math
  from collections import namedtuple
  from functools import cmp_to_key
  import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: draw_detections(font_path, im, dets, thresh, names, classes) without return types