code: def test_pretrained(self, model_type):
      Sam.from_config(SamConfig(model_type, pretrained=True))
  
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 8 for calling the TestSam obj's underlying member method code with example usage: obj.test_pretrained(model_type) without return types