code: def test_mobile_sam_backbone(self, device, dtype):
      img_size = 1024
      batch_size = 1
      model = TinyViT.from_config(
          "5m", img_size=img_size, mobile_sam=True
      ).to(device=device, dtype=dtype)
      inpt = torch.randn(
          batch_size, 3, img_size, img_size, device=device, dtype=dtype
      )
  
      out = model(inpt)
      assert out.shape == (
          batch_size,
          256,
          img_size // 16,
          img_size // 16,
      )
  
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 9 for calling the TestTinyViT obj's underlying member method code with example usage: obj.test_mobile_sam_backbone(device, dtype) without return types