code: def test_spatial_kernel_embedding(kernel_type, ps, d):
      grids = get_grid_dict(ps)
      spatial_kernel = spatial_kernel_embedding(kernel_type, grids)
      assert spatial_kernel.shape == (d, ps, ps)
  
imports: from math import pi
  import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia.testing
  from kornia.feature.mkd import COEFFS, EmbedGradients, ExplicitSpacialEncoding, MKDDescriptor, MKDGradients, SimpleKD, VonMisesKernel, Whitening, get_grid_dict, get_kron_order, spatial_kernel_embedding
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling a global function with example usage: test_spatial_kernel_embedding(kernel_type, ps, d) without return types