code: def test_dynamo(self, device, torch_optimizer):
      dtype = torch.float32
      img = torch.rand(3, 128, 75, device=device, dtype=dtype)
  
      prompter = VisualPrompter(SamConfig("vit_b"), device, dtype)
      prompter.set_image(img)
  
      expected = prompter.predict(img)
      prompter.reset_image()
  
      prompter.compile()
      prompter.set_image(img)
      actual = prompter.predict(img)
  
      self.assert_close(expected.logits, actual.logits)
      self.assert_close(expected.scores, actual.scores)
  
file_path: kornia/test/contrib/test_prompter.py
imports: import pytest
  import torch
  from kornia.contrib.models.sam import SamConfig
  from kornia.contrib.visual_prompter import VisualPrompter
  from kornia.testing import BaseTester
label_desc: Use image node_id 6 for calling the TestVisualPrompter obj's underlying member method code with example usage: obj.test_dynamo(device, torch_optimizer) without return types