code: def show_detections(im, dets, thresh, names, classes):
      "Print the markings and the detected region"
      for det in dets:
          valid, detection = get_detections(
              im, det, thresh, names, classes
          )
          if valid:
              print(
                  "class:{} left:{} top:{} right:{} bottom:{}".format(
                      detection["labelstr"],
                      detection["left"],
                      detection["top"],
                      detection["right"],
                      detection["bot"],
                  )
              )
  
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 14 for calling a global function with example usage: show_detections(im, dets, thresh, names, classes) without return types