code: def test_gradcheck(self, device):
      ...
  
file_path: kornia/test/contrib/models/test_sam.py
imports: import pytest
  import torch
  from kornia.contrib.models.sam import Sam, SamConfig
  from kornia.core import pad
  from kornia.testing import BaseTester
label_desc: Use image node_id 5 for calling the TestSam obj's underlying member method code with example usage: obj.test_gradcheck(device) without return types