code: def scale_boxes(bbox, scale):
      assert all(
          isinstance(x, float) for x in bbox
      ), "BBox coordinates must be float."
  
      bbox[0] *= scale[1]
      bbox[2] *= scale[1]  # xmin/xmax div W scale
      bbox[1] *= scale[0]
      bbox[3] *= scale[0]  # ymin/ymax div H scale
  
      return bbox
  
file_path: neon/examples/ssd/datasets/ingest_utils.py
imports: from __future__ import print_function
  import os
  import json
  import numpy
  from zipfile import ZipFile
  from scipy.ndimage import imread
  from scipy.misc import imsave, imresize
label_desc: Use image node_id 2 for calling a global function with example usage: scale_boxes(bbox, scale) and returns: bbox