def axis_reverse(a, axis=(-1)):
 return axis_slice(a, step=(-1), axis=axis)

def axis_reverse ( a , axis = ( - 1 ) ) : return axis_slice ( a , step = ( - 1 ) , axis = axis )
reverse the 1-d slices of a along axis axis .