code: def track_viz_image(results, video_folder, plot_save_folder):
      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),
      ]
  
      video_frames = os.listdir(video_folder)
      video_frames.sort()
  
      for frame_id, frame_path in enumerate(video_frames):
          frame = cv2.imread(os.path.join(video_folder, frame_path))
  
          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,
          )
  
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 2 for calling a global function with example usage: track_viz_image(results, video_folder, plot_save_folder) without return types