code: def test_config(self, device, model_type):
      model = Sam.from_config(SamConfig(model_type))
      model = model.to(device=device)
  
      assert isinstance(model, Sam)
      assert next(model.parameters()).device == 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 4 for calling the TestSam obj's underlying member method code with example usage: obj.test_config(device, model_type) without return types