code: def test_kernel_3x3(self, device, dtype):
      inp = torch.tensor(
          [
              [
                  [0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 3.0, 7.0, 5.0, 0.0],
                  [0.0, 3.0, 1.0, 1.0, 0.0],
                  [0.0, 6.0, 9.0, 2.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0],
              ],
              [
                  [36.0, 7.0, 25.0, 0.0, 0.0],
                  [3.0, 14.0, 1.0, 0.0, 0.0],
                  [65.0, 59.0, 2.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0, 0.0],
              ],
          ],
          device=device,
          dtype=dtype,
      ).repeat(2, 1, 1, 1)
  
      kernel_size = (3, 3)
      actual = median_blur(inp, kernel_size)
      self.assert_close(
          actual[0, 0, 2, 2],
          torch.tensor(3.0, device=device, dtype=dtype),
      )
      self.assert_close(
          actual[0, 1, 1, 1],
          torch.tensor(14.0, device=device, dtype=dtype),
      )
  
file_path: kornia/test/filters/test_median.py
imports: import pytest
  import torch
  from kornia.filters import MedianBlur, median_blur
  from kornia.testing import BaseTester, tensor_to_gradcheck_var
label_desc: Use image node_id 4 for calling the TestMedianBlur obj's underlying member method code with example usage: obj.test_kernel_3x3(device, dtype) without return types