code: def _get_blobs(im, rois):
      """Convert an image and RoIs within that image into network inputs."""
      blobs = {"data": None, "rois": None}
      blobs["data"], im_scale_factors = _get_image_blob(im)
      blobs["rois"] = _get_rois_blob(rois, im_scale_factors)
      return blobs, im_scale_factors
  
file_path: CNTK/Examples/Image/Detection/FastRCNN/BrainScript/fastRCNN/test.py
imports: from __future__ import print_function
  import os, sys, cv2, numpy, pickle, heapq
  from .nms import nms
  from .utils.cython_nms import nms
  from .timer import Timer
  from cntk_helpers import im_detect, apply_nms
  from builtins import range
label_desc: Use image node_id 4 for calling a global function with example usage: _get_blobs(im, rois) and returns: blobs,  im_scale_factors