code: def gen_image_list(dataPath, datType):
      inputPath = f"{dataPath}/images/{datType}"
      pathList = glob.glob(inputPath + "/*")
      pathList = sorted(pathList)
      allImageList = []
      for pathSingle in pathList:
          imgList = sorted(
              glob.glob(osp.join(pathSingle, "img1", "*.jpg"))
          )
          for imgPath in imgList:
              allImageList.append(imgPath)
      with open(f"{dataPath}.{datType}", "w") as image_list_file:
          allImageListStr = str.join("\n", allImageList)
          image_list_file.write(allImageListStr)
  
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 10 for calling a global function with example usage: gen_image_list(dataPath, datType) without return types