code: def _compute_targets(ex_rois, gt_rois):
      """Compute bounding-box regression targets for an image."""
  
      assert ex_rois.shape[0] == gt_rois.shape[0]
      assert ex_rois.shape[1] == 4
      # assert gt_rois.shape[1] == 5
  
      return bbox_transform(ex_rois, gt_rois[:, :4]).astype(
          np.float32, copy=False
      )
  
file_path: neon/examples/faster-rcnn/tests/anchor_target_layer_ref.py
imports: from __future__ import division
  from __future__ import print_function
  from builtins import range
  from builtins import object
  import numpy
  import numpy.random
  from generate_anchors import generate_anchors
  from util import bbox_transform
label_desc: Use image node_id 2 for calling a global function with example usage: _compute_targets(ex_rois, gt_rois) and returns: bbox_transform