code: def slicable(dim, pad=0):
      """
      colapse outer dimensions into one and preserve inner dimension
      this allows for easy cpu convolution in numpy
  
      Arguments:
          dim (tuple): dimensions list in a tuple
          pad (int):  how many pixel paddings
      """
      dim0 = np.prod(dim[:-1]) + pad
      return (dim0, dim[-1])
  
file_path: neon/tests/test_backend_conv_layer.py
imports: import itertools
  import numpy
  import pytest
  from timeit import default_timer
  from utils import allclose_with_out
  from neon import logger
label_desc: Use image node_id 1 for calling a global function with example usage: slicable(dim, pad) and returns: dim0,  dim