code: def test_cardinality(self, device, dtype, shape):
      shapey = list(shape)
      shapey[-3] = 1
      shapeuv = list(shape)
      shapeuv[-3] = 2
      shapeuv[-1] = int(shapeuv[-1] / 2)
  
      imgy = torch.ones(shapey, device=device, dtype=dtype)
      imguv = torch.ones(shapeuv, device=device, dtype=dtype)
      assert kornia.color.yuv422_to_rgb(imgy, imguv).shape == shape
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  from kornia.testing import BaseTester
label_desc: Use image node_id 2 for calling the TestYuv422ToRgb obj's underlying member method code with example usage: obj.test_cardinality(device, dtype, shape) without return types