def _fill_and_one_pad_stride(stride, n):
 try:
  return (((1,) + _fill_shape(stride, n)) + (1,))
 except TypeError:
  raise base.IncompatibleShapeError('stride is {} ({}), must be either an integer or an iterable of integers of size {}'.format(stride, type(stride), n))

def _fill_and_one_pad_stride ( stride , n ) : try : return ( ( ( 1 , ) + _fill_shape ( stride , n ) ) + ( 1 , ) ) except TypeError : raise base . IncompatibleShapeError ( 'stride is {} ({}), must be either an integer or an iterable of integers of size {}' . format ( stride , type ( stride ) , n ) )
expands the provided stride to size n and pads it with 1s .