This reshaping is done on the minibatch (5-D) before you input it to the network. shuffle can still be True.
I’m not 100% sure this is what you were asking but just by how reshape works, the first N elements among the N x batch_size would be the different rotations of the first image.