code: def expand_boxes(boxes, scale):
      """Expand an array of boxes by a given scale."""
      w_half = (boxes[:, 2] - boxes[:, 0]) * 0.5
      h_half = (boxes[:, 3] - boxes[:, 1]) * 0.5
      x_c = (boxes[:, 2] + boxes[:, 0]) * 0.5
      y_c = (boxes[:, 3] + boxes[:, 1]) * 0.5
  
      w_half *= scale
      h_half *= scale
  
      boxes_exp = np.zeros(boxes.shape)
      boxes_exp[:, 0] = x_c - w_half
      boxes_exp[:, 2] = x_c + w_half
      boxes_exp[:, 1] = y_c - h_half
      boxes_exp[:, 3] = y_c + h_half
  
      return boxes_exp
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import numpy
  from detectron.core.config import cfg
  import detectron.utils.cython_bbox
  import detectron.utils.cython_nms
label_desc: Use image node_id 11 for calling a global function with example usage: expand_boxes(boxes, scale) and returns: boxes_exp