code: def draw_boxes(
      image, box_points, draw_box, label, percentage_probability, color
  ):
      xmin, ymin, xmax, ymax = box_points
  
      if draw_box is True:
          cv2.rectangle(image, (xmin, ymin), (xmax, ymax), color, 2)
  
      if label is not None:
          if percentage_probability is None:
              label = "{}".format(label)
          else:
              label = "{} {:.2f}%".format(label, percentage_probability)
      elif percentage_probability is not None:
          label = "{:.2f}".format(percentage_probability)
  
      if label is not None or percentage_probability is not None:
          cv2.putText(
              image,
              label,
              (xmin, ymin - 13),
              cv2.FONT_HERSHEY_SIMPLEX,
              1e-3 * image.shape[0],
              (255, 0, 0),
              2,
          )
          cv2.putText(
              image,
              label,
              (xmin, ymin - 13),
              cv2.FONT_HERSHEY_SIMPLEX,
              1e-3 * image.shape[0],
              (255, 255, 255),
              1,
          )
  
      return image
  
imports: import tensorflow
  from keras import backend
  import numpy
  from PIL import Image
  import cv2
label_desc: Use image node_id 14 for calling a global function with example usage: draw_boxes(image, box_points, draw_box, label, percentage_probability, color) and returns: image