#NEWLINE# def array_tf_270( arr ) : #NEWLINE# #INDENT# axes_order = ( range ( ( arr . ndim - 2 ) ) + [ ( arr . ndim - 1 ) , ( arr . ndim - 2 ) ] ) #NEWLINE# slices = ( [ slice ( None ) for _ in range ( ( arr . ndim - 2 ) ) ] + [ slice ( None , None , ( - 1 ) ) , slice ( None ) ] ) #NEWLINE# return arr [ tuple ( slices ) ] . transpose ( axes_order )