code: def _fprop_slice_np(h, stride, H, roi_offset):
      """
      slicing in this 1 dimension
      h: is the index on the pooled map (output index)
      stride:
      H: the max of the input map
      roi_offset: how far hstart is from 0
      """
      hstart = int(np.floor(float(h) * stride))
      hend = int(np.ceil(float(h + 1) * stride))
  
      hstart = min(max(hstart + roi_offset, 0), H)
      hend = min(max(hend + roi_offset, 0), H)
  
      return slice(hstart, hend), hend - hstart
  
file_path: neon/tests/test_roipooling_layer.py
imports: from builtins import round
  import itertools
  import numpy
  from timeit import default_timer
  from neon import NervanaObject, logger
  from neon.backends import gen_backend
  from utils import allclose_with_out
label_desc: Use image node_id 1 for calling a global function with example usage: _fprop_slice_np(h, stride, H, roi_offset) and returns: slice,  unknown