Check the number of dimensions via:
datum_I_cc = torch.tensor(datum_l_cc)
print(datum_I_cc.shape)

and make sure permute uses all dimensions.
Based on the values you are passing I guess the tensor might have 4 dimensions.
If you want to swap dim3 with dim1, you could use .permute(0, 3, 2, 1).