code: def test_gradcheck(self, device):
      pt1 = torch.rand(
          2, 3, device=device, dtype=torch.float64, requires_grad=True
      )
      pt2 = torch.rand(
          2, 3, device=device, dtype=torch.float64, requires_grad=True
      )
      assert gradcheck(
          kgl.euclidean_distance,
          (pt1, pt2),
          raise_exception=True,
          fast_mode=True,
      )
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.geometry.linalg
  import kornia.testing
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 4 for calling the TestEuclideanDistance obj's underlying member method code with example usage: obj.test_gradcheck(device) without return types