code: def test_exception(self, device, dtype):
      cm = AUTUMN(device=device, dtype=dtype)
      with pytest.raises(TypeError):
          apply_colormap(
              torch.rand(size=(5, 1, 1), dtype=dtype, device=device), cm
          )
  
file_path: kornia/test/color/test_colormap.py
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  from kornia.color import AUTUMN, ApplyColorMap, apply_colormap
  from kornia.core import tensor
  from kornia.testing import BaseTester, assert_close, tensor_to_gradcheck_var
label_desc: Use image node_id 3 for calling the TestApplyColorMap obj's underlying member method code with example usage: obj.test_exception(device, dtype) without return types