code: def test_cardinality(
      self, shape, padding, window_size, expected, device, dtype
  ):
      img = torch.rand(shape, device=device, dtype=dtype)
  
      actual = kornia.metrics.ssim3d(
          img, img, window_size, padding=padding
      )
  
      assert actual.shape == expected
  
imports: import pytest
  import torch
  import kornia
  from kornia.testing import BaseTester, assert_close, tensor_to_gradcheck_var
label_desc: Use image node_id 2 for calling the TestSSIM3d obj's underlying member method code with example usage: obj.test_cardinality(shape, padding, window_size, expected, device, dtype) without return types