code: def test_get_hanning_kernel1d_5(device, dtype):
      kernel = get_hanning_kernel1d(5, dtype=dtype, device=device)
      expected = torch.tensor(
          [0, 0.5, 1.0, 0.5, 0], dtype=dtype, device=device
      )
      assert kernel.shape == (5,)
      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 3 for calling a global function with example usage: test_get_hanning_kernel1d_5(device, dtype) without return types