code: def get_eval_functions():
      # Determine which parent or child function should handle inference
      if cfg.MODEL.RPN_ONLY:
          child_func = generate_rpn_on_range
          parent_func = generate_rpn_on_dataset
      else:
          # Generic case that handles all network types other than RPN-only nets
          # and RetinaNet
          child_func = test_net
          parent_func = test_net_on_dataset
  
      return parent_func, child_func
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from collections import defaultdict
  import cv2
  import datetime
  import logging
  import numpy
  import os
  import yaml
  from caffe2.python import workspace
  from detectron.core.config import cfg
  from detectron.core.config import get_output_dir
  from detectron.core.rpn_generator import generate_rpn_on_dataset
  from detectron.core.rpn_generator import generate_rpn_on_range
  from detectron.core.test import im_detect_all
  from detectron.datasets import task_evaluation
  from detectron.datasets.json_dataset import JsonDataset
  from detectron.modeling import model_builder
  from detectron.utils.io import save_object
  from detectron.utils.timer import Timer
  import detectron.utils.c2
  import detectron.utils.env
  import detectron.utils.net
  import detectron.utils.subprocess
  import detectron.utils.vis
label_desc: Use image node_id 1 for calling a global function with example usage: get_eval_functions() and returns: parent_func,  child_func