code: def test_write_first_channel(self, tmp_path: Path) -> None:
      data = np.ones((4, 5, 3), dtype=np.uint8)
      img = Image.from_numpy(
          data,
          color_space=ColorSpace.RGB,
          channels_order=ChannelsOrder.CHANNELS_LAST,
      )
      img.write(tmp_path / "image.jpg")
  
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 5 for calling the TestImage obj's underlying member method code with example usage: obj.test_write_first_channel(tmp_path) without return types