code: def _roi_pooling_slice(size, stride, max_size, roi_offset):
      start = int(numpy.floor(size * stride))
      end = int(numpy.ceil((size + 1) * stride))
  
      start = min(max(start + roi_offset, 0), max_size)
      end = min(max(end + roi_offset, 0), max_size)
  
      return slice(start, end), end - start
  
imports: import numpy
  import six
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _roi_pooling_slice(size, stride, max_size, roi_offset) and returns: slice,  unknown