code: def test_exception(self, device, dtype):
      with pytest.raises(TypeError) as errinfo:
          median_blur(1, 1)
      assert "Not a Tensor type." in str(errinfo)
  
      with pytest.raises(TypeError) as errinfo:
          median_blur(torch.ones(1, 1, device=device, dtype=dtype), 1)
      assert "shape must be [['B', 'C', 'H', 'W']]." in str(errinfo)
  
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 3 for calling the TestMedianBlur obj's underlying member method code with example usage: obj.test_exception(device, dtype) without return types