code: def get_image_scale(im_shape, im_reshape):
      if im_reshape is None:
          scale = [1.0, 1.0]
          return scale, im_shape
      else:
          assert len(im_reshape) == 2
          scale = [
              float(x) / float(y)
              for (x, y) in zip(im_reshape, im_shape)
          ]
          return scale, im_reshape
  
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 1 for calling a global function with example usage: get_image_scale(im_shape, im_reshape) and returns: scale,  im_shape, scale,  im_reshape