code: def draw_bbox(img_path, result, color=(255, 0, 0), thickness=2):
      if isinstance(img_path, str):
          img_path = cv2.imread(img_path)
          # img_path = cv2.cvtColor(img_path, cv2.COLOR_BGR2RGB)
      img_path = img_path.copy()
      for point in result:
          point = point.astype(int)
          cv2.polylines(img_path, [point], True, color, thickness)
      return img_path
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 12 for calling a global function with example usage: draw_bbox(img_path, result, color, thickness) and returns: img_path