code: def _get_image_paths(img_dir, training_set):
      if training_set:
          subDirs = ["positive", "negative"]
      else:
          subDirs = ["testImages"]
  
      image_paths = []
      for subdir in subDirs:
          sub_dir_path = os.path.join(img_dir, subdir)
          imgFilenames = _getFilesInDirectory(sub_dir_path, ".jpg")
          for img in imgFilenames:
              image_paths.append("{}/{}".format(subdir, img))
  
      return image_paths
  
file_path: CNTK/Examples/Image/Detection/utils/annotations/annotations_helper.py
imports: import numpy
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: _get_image_paths(img_dir, training_set) and returns: image_paths