code: def VisualGt(dataPath, phase="train"):
      seqList = sorted(
          glob.glob(osp.join(dataPath, "images", phase) + "/*")
      )
      seqIndex = random.randint(0, len(seqList) - 1)
      seqPath = seqList[seqIndex]
      gt_path = osp.join(seqPath, "gt", "gt.txt")
      img_list_path = sorted(
          glob.glob(osp.join(seqPath, "img1", "*.jpg"))
      )
      imgIndex = random.randint(0, len(img_list_path))
      img_Path = img_list_path[imgIndex]
      frame_value = int(img_Path.split("/")[-1].replace(".jpg", ""))
      gt_value = np.loadtxt(gt_path, dtype=int, delimiter=",")
      gt_value = gt_value[gt_value[:, 0] == frame_value]
      get_list = gt_value.tolist()
      img = cv2.imread(img_Path)
      colors = [
          [255, 0, 0],
          [255, 255, 0],
          [255, 0, 255],
          [0, 255, 0],
          [0, 255, 255],
          [0, 0, 255],
      ]
      for seq, _id, pl, pt, w, h, _, bbox_class, _ in get_list:
          cv2.putText(
              img,
              str(bbox_class),
              (pl, pt),
              cv2.FONT_HERSHEY_PLAIN,
              2,
              colors[bbox_class - 1],
          )
          cv2.rectangle(
              img,
              (pl, pt),
              (pl + w, pt + h),
              colors[bbox_class - 1],
              thickness=2,
          )
      cv2.imwrite("testGt.jpg", img)
  
file_path: PaddleDetection/configs/mot/pedestrian/tools/visdrone/visdrone2mot.py
imports: import glob
  import os
  import os.path
  import cv2
  import argparse
  import numpy
  import random
label_desc: Use image node_id 8 for calling a global function with example usage: VisualGt(dataPath, phase) without return types