code: def genMotLabels(datasetPath, outputFileName, classes=["2"]):
      mkdir_if_missing(osp.join(datasetPath, outputFileName))
      annotationsPath = osp.join(datasetPath, "annotations")
      annotationsList = glob.glob(osp.join(annotationsPath, "*.txt"))
      for annotationPath in annotationsList:
          seqName = annotationPath.split("/")[-1].replace(".txt", "")
          if seqName in exclude_seq:
              continue
          mkdir_if_missing(
              osp.join(datasetPath, outputFileName, seqName, "gt")
          )
          mkdir_if_missing(
              osp.join(datasetPath, outputFileName, seqName, "img1")
          )
          genGtFile(
              annotationPath,
              osp.join(datasetPath, outputFileName, seqName, "gt"),
              classes,
          )
          img1Path = osp.join(
              datasetPath, outputFileName, seqName, "img1"
          )
          gtTxtPath = osp.join(
              datasetPath, outputFileName, seqName, "gt/gt.txt"
          )
          copyImg(img1Path, gtTxtPath, outputFileName)
          genSeqInfo(img1Path, seqName)
  
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 5 for calling a global function with example usage: genMotLabels(datasetPath, outputFileName, classes) without return types