code: def test_dynamo(
      self, sigma, params_as_tensor, device, dtype, torch_optimizer
  ):
      if params_as_tensor is True:
          sigma = torch.tensor([sigma], device=device, dtype=dtype)
  
      inpt = torch.ones(1, 3, 10, 10, device=device, dtype=dtype)
      op = UnsharpMask(3, sigma)
      op_optimized = torch_optimizer(op)
  
      self.assert_close(op(inpt), op_optimized(inpt))
  
file_path: kornia/test/filters/test_unsharp_mask.py
imports: import pytest
  import torch
  from kornia.filters import UnsharpMask, unsharp_mask
  from kornia.testing import BaseTester, tensor_to_gradcheck_var
label_desc: Use image node_id 7 for calling the Testunsharp obj's underlying member method code with example usage: obj.test_dynamo(sigma, params_as_tensor, device, dtype, torch_optimizer) without return types