code: def test_get_hanning_kernel2d(ksize_x, ksize_y, device, dtype):
      kernel = get_hanning_kernel2d(
          (ksize_x, ksize_y), dtype=dtype, device=device
      )
      assert kernel.shape == (ksize_x, ksize_y)
      assert kernel.max().item() == pytest.approx(1.0)
  
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 2 for calling a global function with example usage: test_get_hanning_kernel2d(ksize_x, ksize_y, device, dtype) without return types