code: def test_gradcheck(self, device, dtype):
      # test parameters
      new_size = 4
      input = torch.rand(1, 2, 3, 4, device=device, dtype=dtype)
      input = utils.tensor_to_gradcheck_var(input)  # to var
      assert gradcheck(
          kornia.geometry.transform.Resize(
              new_size, align_corners=False
          ),
          (input,),
          raise_exception=True,
          fast_mode=True,
      )
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import assert_close
label_desc: Use image node_id 9 for calling the TestResize obj's underlying member method code with example usage: obj.test_gradcheck(device, dtype) without return types