code: def create_slice(shape, axis, front=True):
      start = []
      stop = []
      step = []
      D = len(shape)
      axis = positive_axis(axis, D)
      for i, s in enumerate(shape):
          if i == axis:
              c = s // 2
              if front:
                  start.append(0)
                  stop.append(c)
              else:
                  start.append(c)
                  stop.append(s)
          else:
              start.append(0)
              stop.append(s)
          step.append(1)
      return start, stop, step
  
file_path: nnabla/python/src/nnabla/backward_function/utils.py
imports: import nnabla.functions
label_desc: Use image node_id 3 for calling a global function with example usage: create_slice(shape, axis, front) and returns: start,  stop,  step