code: def output_slice(x, P, B, D, pad):
      p0 = x * B + pad - 4
      p1 = p0 + D
      if p0 < 0:
          m0 = -p0
          p0 = 0
      else:
          m0 = 0
      if p1 > P:
          m1 = D - (p1 - P)
          p1 = P
      else:
          m1 = D
      return slice(p0, p1, 1), slice(m0, m1, 1)
  
file_path: neon/neon/backends/winograd5.py
imports: from __future__ import division
  import numpy
  from struct import pack, unpack
  from neon import logger
label_desc: Use image node_id 14 for calling a global function with example usage: output_slice(x, P, B, D, pad) and returns: slice,  slice