How to create 3D Gaussian window?

I saw that creating a Gaussian window works for 1D tensors with scipy.signal.window.gaussian, but how would it work for 3D tensors? I expect for example a tensor of shape (64, 64, 32) to have a value of 1.0 at the central voxel and 0.0 at the borders.

Thank you in advance!