code: def test_cardinality(self, device, dtype, shape):
      tensor = torch.rand(*shape, device=device, dtype=dtype)
      output = integral_tensor(tensor)
      assert output.shape == shape
  
file_path: kornia/test/enhance/test_integral.py
imports: import pytest
  import torch
  from kornia.enhance.integral import IntegralImage, IntegralTensor, integral_image, integral_tensor
  from kornia.testing import BaseTester
label_desc: Use image node_id 2 for calling the TestIntegralTensor obj's underlying member method code with example usage: obj.test_cardinality(device, dtype, shape) without return types