code: def test_smoke(self, device, model_type):
      model = Sam.from_config(SamConfig(model_type)).to(device)
      assert isinstance(model, Sam)
  
      img_size = model.image_encoder.img_size
      inpt = torch.randn(1, 3, img_size, img_size, device=device)
      keypoints = torch.randint(
          0, img_size, (1, 2, 2), device=device, dtype=torch.float
      )
      labels = torch.randint(
          0, 1, (1, 2), device=device, dtype=torch.float
      )
  
      model(inpt, [{"points": (keypoints, labels)}], False)
  
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 1 for calling the TestSam obj's underlying member method code with example usage: obj.test_smoke(device, model_type) without return types