code: def test_exception(self, batch_size, device, dtype):
      image = torch.rand(batch_size, 3, 32, 32)
      dst = torch.rand(batch_size, 5, 2)
      kernel = torch.zeros_like(dst)
      affine = torch.zeros(batch_size, 3, 2)
  
      with pytest.raises(TypeError):
          assert kornia.geometry.transform.warp_image_tps(
              image.numpy(), dst, kernel, affine
          )
  
      with pytest.raises(TypeError):
          assert kornia.geometry.transform.warp_image_tps(
              image, dst.numpy(), kernel, affine
          )
  
      with pytest.raises(TypeError):
          assert kornia.geometry.transform.warp_image_tps(
              image, dst, kernel.numpy(), affine
          )
  
      with pytest.raises(TypeError):
          assert kornia.geometry.transform.warp_image_tps(
              image, dst, kernel, affine.numpy()
          )
  
      with pytest.raises(ValueError):
          image_bad = torch.rand(batch_size, 32, 32)
          assert kornia.geometry.transform.warp_image_tps(
              image_bad, dst, kernel, affine
          )
  
      with pytest.raises(ValueError):
          dst_bad = torch.rand(batch_size, 5)
          assert kornia.geometry.transform.warp_image_tps(
              image, dst_bad, kernel, affine
          )
  
      with pytest.raises(ValueError):
          kernel_bad = torch.rand(batch_size, 5)
          assert kornia.geometry.transform.warp_image_tps(
              image, dst, kernel_bad, affine
          )
  
      with pytest.raises(ValueError):
          affine_bad = torch.rand(batch_size, 3)
          assert kornia.geometry.transform.warp_image_tps(
              image, dst, kernel, affine_bad
          )
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  from kornia.testing import assert_close
  from kornia.utils._compat import torch_version_ge
label_desc: Use image node_id 3 for calling the TestWarpImage obj's underlying member method code with example usage: obj.test_exception(batch_size, device, dtype) without return types