code: def evaluate_test_set(model, cfg):
      """
      Evaluates the given model on the test set as specified in the configuration
      :param model: the model
      :param cfg: the configuration
      :return: AP (average precision) per class
      """
  
      detector_name = _get_detector_name(cfg)
      aps = None
      print("evaluating {}".format(detector_name))
      if detector_name == "FastRCNN":
          from FastRCNN.FastRCNN_eval import compute_test_set_aps
  
          aps = compute_test_set_aps(model, cfg)
      elif detector_name == "FasterRCNN":
          from FasterRCNN.FasterRCNN_eval import compute_test_set_aps
  
          aps = compute_test_set_aps(model, cfg)
      else:
          print("Unknown detector: {}".format(detector_name))
  
      return aps
  
file_path: CNTK/Examples/Image/Detection/utils/od_utils.py
imports: import easydict
  from utils.nms_wrapper import apply_nms_to_single_image_results
label_desc: Use image node_id 2 for calling a global function with example usage: evaluate_test_set(model, cfg) and returns: aps