code: def test_smoke(self, device):
      data = torch.randint(
          0, 255, (3, 4, 5), device=device, dtype=torch.uint8
      )
      pixel_format = PixelFormat(
          color_space=ColorSpace.RGB, bit_depth=8
      )
      layout = ImageLayout(
          image_size=ImageSize(4, 5),
          channels=3,
          channels_order=ChannelsOrder.CHANNELS_FIRST,
      )
  
      img = Image(data, pixel_format, layout)
      assert isinstance(img, Image)
      assert img.channels == 3
      assert img.height == 4
      assert img.width == 5
      assert img.shape == (3, 4, 5)
      assert img.device == device
      assert img.dtype == torch.uint8
      assert img.layout == layout
      assert img.pixel_format.color_space == ColorSpace.RGB
      assert img.pixel_format.bit_depth == 8
      assert img.channels_order == ChannelsOrder.CHANNELS_FIRST
  
file_path: kornia/test/image/test_image.py
imports: from pathlib import Path
  import numpy
  import pytest
  import torch
  from kornia.image.base import ChannelsOrder, ColorSpace, ImageLayout, ImageSize, PixelFormat
  from kornia.image.image import Image
  from kornia.testing import assert_close
  from kornia.utils._compat import torch_version_le
label_desc: Use image node_id 1 for calling the TestImage obj's underlying member method code with example usage: obj.test_smoke(device) without return types