code: def copyImg(img1Path, gtTxtPath, outputFileName):
      with open(gtTxtPath, "r") as gtFile:
          allLines = gtFile.readlines()
          imgList = []
          for line in allLines:
              imgIdx = int(line.split(",")[0])
              if imgIdx not in imgList:
                  imgList.append(imgIdx)
                  seqName = gtTxtPath.replace(
                      "./{}/".format(outputFileName), ""
                  ).replace("/gt/gt.txt", "")
                  sourceImgPath = osp.join(
                      "./sequences",
                      seqName,
                      "{:07d}.jpg".format(imgIdx),
                  )
                  os.system(f"cp {sourceImgPath} {img1Path}")
  
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 4 for calling a global function with example usage: copyImg(img1Path, gtTxtPath, outputFileName) without return types