code: def output_slice(p, P, B):
      p0 = p * B
      p1 = p0 + B
      if p1 > P:
          p1 = P
      return p0, p1, p1 - p0
  
imports: from __future__ import division
  import numpy
  from struct import pack, unpack
  from neon import logger
label_desc: Use image node_id 16 for calling a global function with example usage: output_slice(p, P, B) and returns: p0,  p1,  unknown