#NEWLINE# def flipped_idxs( ndim , axes ) : #NEWLINE# #INDENT# new_idxs = ( [ slice ( None ) ] * ndim ) #NEWLINE# for ax in axes : #NEWLINE# #INDENT# new_idxs [ ax ] = slice ( None , None , ( - 1 ) ) #NEWLINE# #UNINDENT# return new_idxs