code: def track_viz_video(results, video, plot_save_folder):
      video_cap = cv2.VideoCapture(video)
  
      cnt = 0
      color_list = [
          (255, 0, 0),
          (128, 0, 0),
          (255, 255, 0),
          (128, 128, 0),
          (0, 255, 0),
          (0, 128, 0),
          (0, 255, 255),
          (0, 128, 128),
          (0, 255, 255),
          (0, 0, 128),
          (255, 0, 255),
          (128, 0, 128),
      ]
  
      while video_cap.isOpened():
          ret, frame = video_cap.read()
          if ret:
              frame_id, trackInfo = results[cnt]
              cnt += 1
              imarr_plot = np.copy(frame)
  
              for bb in trackInfo:
                  track_id, x, y, w, h = (
                      bb["track_id"],
                      bb["bbox"]["left"],
                      bb["bbox"]["top"],
                      bb["bbox"]["width"],
                      bb["bbox"]["height"],
                  )
                  cv2.rectangle(
                      imarr_plot,
                      (int(x), int(y)),
                      (int(x + w), int(y + h)),
                      color_list[track_id % len(color_list)],
                      2,
                  )
              cv2.imwrite(
                  os.path.join(
                      plot_save_folder, ("output_%05d.jpg" % (frame_id))
                  ),
                  imarr_plot,
              )
          else:
              break
  
file_path: gluon-cv/scripts/tracking/smot/demo.py
imports: import os
  import argparse
  import logging
  import numpy
  import cv2
  from gluoncv.model_zoo.smot import smot_tracker
  from gluoncv.model_zoo.smot.tracktors import GluonSSDMultiClassTracktor
label_desc: Use image node_id 1 for calling a global function with example usage: track_viz_video(results, video, plot_save_folder) without return types