code: def test_functional(self, device, dtype, cfa, expected_rgb):
      data = torch.tensor(
          [[[0.12, 0.43, 0.46, 0.58], [0.23, 0.00, 0.43, 0.89]]],
          device=device,
          dtype=dtype,
      )
      expected_rgb = torch.tensor(
          expected_rgb, device=device, dtype=dtype
      )
  
      img_rgb = kornia.color.raw_to_rgb_2x2_downscaled(data, cfa)
      self.assert_close(img_rgb, expected_rgb)
  
imports: import warnings
  import pytest
  import torch
  from packaging import version
  from torch.autograd import gradcheck
  import kornia
  from kornia.testing import BaseTester, assert_close
label_desc: Use image node_id 4 for calling the TestRawToRgb2x2Downscaled obj's underlying member method code with example usage: obj.test_functional(device, dtype, cfa, expected_rgb) without return types