code: def test_cardinality(self, device, dtype, shape):
      pt1 = torch.rand(shape, device=device, dtype=dtype)
      pt2 = torch.rand(shape, device=device, dtype=dtype)
      dst = kgl.euclidean_distance(pt1, pt2)
      assert len(dst.shape) == len(shape) - 1
  
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 2 for calling the TestEuclideanDistance obj's underlying member method code with example usage: obj.test_cardinality(device, dtype, shape) without return types