code: def get_vis_nir_info(test_fold_id):
      def get_data(test_fold_id, mode="vis"):
          name = (
              "gallery_vis%d.txt" % (test_fold_id)
              if mode == "vis"
              else "probe_nir%d.txt" % (test_fold_id)
          )
          file_data = np.genfromtxt(
              test_list_dir + name,
              usecols=(0, 1),
              skip_header=1,
              dtype=str,
          )
          paths = file_data[:, 0]
  
          # paths = [p for p in paths if os.path.exists(img_root + p)]
          return paths
  
      vis = get_data(test_fold_id, mode="vis")
      nir = get_data(test_fold_id, mode="nir")
  
      return vis, nir
  
file_path: insightface/recognition/idmmd/evaluate/eval_lamp_112.py
imports: import numpy
  import os, sys
  import argparse
  from PIL import Image
  import torch
  from network.lightcnn112 import LightCNN_29Layers
  from evaluate import evaluate2
label_desc: Use image node_id 2 for calling a global function with example usage: get_vis_nir_info(test_fold_id) and returns: vis,  nir, paths