def __getitem__(self, item_slice):
if K.image_data_format() == '<STR_LIT>':<EOL><INDENT>return item_slice<EOL><DEDENT>else:<EOL><INDENT>item_slice = list(item_slice)<EOL>item_slice.append(item_slice.pop(<NUM_LIT:1>))<EOL>return tuple(item_slice)<EOL><DEDENT>
Assuming a slice for shape `(samples, channels, image_dims...)`