code: def test_get_hanning_kernel2d_3x4(device, dtype):
      kernel = get_hanning_kernel2d((3, 4), dtype=dtype, device=device)
      expected = torch.tensor(
          [
              [0.0, 0.00, 0.00, 0.0],
              [0.0, 0.75, 0.75, 0.0],
              [0.0, 0.00, 0.00, 0.0],
          ],
          dtype=dtype,
          device=device,
      )
      assert kernel.shape == (3, 4)
      assert_close(kernel, expected)
  
file_path: kornia/test/filters/test_hanning.py
imports: import pytest
  import torch
  from kornia.filters import get_hanning_kernel1d, get_hanning_kernel2d
  from kornia.testing import assert_close
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_hanning_kernel2d_3x4(device, dtype) without return types