code: def test_module(self, device, dtype):
      img = torch.rand(2, 3, 4, 5, device=device, dtype=dtype)
      op = canny
      op_module = Canny()
      expected_magnitude, expected_edges = op(img)
      actual_magnitude, actual_edges = op_module(img)
      self.assert_close(actual_magnitude, expected_magnitude)
      self.assert_close(actual_edges, expected_edges)
  
file_path: kornia/test/filters/test_canny.py
imports: import pytest
  import torch
  from kornia.filters import Canny, canny
  from kornia.testing import BaseTester, tensor_to_gradcheck_var
  from kornia.utils._compat import torch_version
label_desc: Use image node_id 10 for calling the TestCanny obj's underlying member method code with example usage: obj.test_module(device, dtype) without return types