code: def test_cardinality(
      self, device, dtype, batch, channels, height, width
  ):
      shape = batch, channels, height, width
      img = torch.ones(shape, device=device, dtype=dtype)
      noise = torch.ones(
          (batch, 2, height, width), device=device, dtype=dtype
      )
      assert elastic_transform2d(img, noise).shape == shape
  
file_path: kornia/test/geometry/transform/test_elastic_transform.py
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  from kornia.geometry.transform import elastic_transform2d
  from kornia.testing import assert_close
label_desc: Use image node_id 2 for calling the TestElasticTransform obj's underlying member method code with example usage: obj.test_cardinality(device, dtype, batch, channels, height, width) without return types