code: def get_id(img_path):
      cameras = []
      labels = []
      for path in img_path:
          cameras.append(int(path[0].split("/")[-1].split("_")[1][1]))
          labels.append(path[1])
      return np.array(cameras), np.array(labels)
  
file_path: gluon-cv/scripts/re-id/baseline/test.py
imports: from __future__ import print_function, division
  import mxnet
  import numpy
  from mxnet import gluon, nd
  from mxnet.gluon import nn
  from mxnet.gluon.data.vision import transforms
  from networks import resnet18, resnet34, resnet50
  import gluoncv
  from gluoncv.data.market1501.data_read import ImageTxtDataset
  import time, os, sys
  import scipy.io
  from os import path
label_desc: Use image node_id 5 for calling a global function with example usage: get_id(img_path) and returns: np,  np