code: def test_module(self, device, dtype):
      B, C, H, W = 2, 3, 4, 4
      img = torch.ones(B, C, H, W, device=device, dtype=dtype)
      raw_ops = kornia.color.RgbToRaw(kornia.color.raw.CFA.BG).to(
          device, dtype
      )
      raw_fcn = kornia.color.rgb_to_raw
      assert_close(raw_ops(img), raw_fcn(img, kornia.color.raw.CFA.BG))
  
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 6 for calling the TestRgbToRaw obj's underlying member method code with example usage: obj.test_module(device, dtype) without return types