code: def test_from_config(self, variant, pretrained):
      model = TinyViT.from_config(variant, pretrained=pretrained)
      assert isinstance(model, TinyViT)
  
file_path: kornia/test/contrib/models/test_tiny_vit.py
imports: import pytest
  import torch
  from kornia.contrib.models.tiny_vit import TinyViT
  from kornia.core import Tensor
  from kornia.testing import BaseTester
label_desc: Use image node_id 7 for calling the TestTinyViT obj's underlying member method code with example usage: obj.test_from_config(variant, pretrained) without return types