code: def test_cardinality(self, shape, device, dtype):
      x = self.prepare_data(shape, device, dtype)
      actual = kornia.geometry.transform.upscale_double(x)
  
      h, w = shape[-2:]
      expected = (*shape[:-2], h * 2, w * 2)
  
      assert tuple(actual.shape) == expected
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 3 for calling the TestUpscaleDouble obj's underlying member method code with example usage: obj.test_cardinality(shape, device, dtype) without return types