The inverse transform, from centered Fourier space back to centered
   spatial data, can be performed by applying the inverse shifts in
   reverse order:



x_centered_2 = torch.fft.fftshift(torch.fft.ifft(torch.fft.ifftshift(fft_centered)))
torch.testing.assert_close(x_centered.to(torch.complex64), x_centered_2, check_stride=False)


