code: def test_smoke_byte(self, device):
      C, H, W = 3, 4, 5
      img = torch.randint(
          0, 255, (C, H, W), device=device, dtype=torch.uint8
      )
      out = kornia.color.rgb_to_grayscale(img)
      assert out.device == img.device
      assert out.dtype == img.dtype
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  from kornia.testing import BaseTester, assert_close
  from kornia.utils._compat import torch_version
label_desc: Use image node_id 2 for calling the TestRgbToGrayscale obj's underlying member method code with example usage: obj.test_smoke_byte(device) without return types