code: def test_to_yuv():
      caer_yuv_yuv = caer.to_yuv(cv_yuv)
      caer_bgr_yuv = caer.to_yuv(cv_bgr)
      caer_gray_yuv = caer.to_yuv(cv_gray)
      caer_hsv_yuv = caer.to_yuv(cv_hsv)
      caer_hls_yuv = caer.to_yuv(cv_hls)
      caer_rgb_yuv = caer.to_yuv(cv_rgb)
      caer_lab_yuv = caer.to_yuv(cv_lab)
      caer_luv_yuv = caer.to_yuv(cv_luv)
  
      assert isinstance(caer_yuv_yuv, caer.Tensor)
      assert isinstance(caer_bgr_yuv, caer.Tensor)
      assert isinstance(caer_gray_yuv, caer.Tensor)
      assert isinstance(caer_hsv_yuv, caer.Tensor)
      assert isinstance(caer_hls_yuv, caer.Tensor)
      assert isinstance(caer_rgb_yuv, caer.Tensor)
      assert isinstance(caer_lab_yuv, caer.Tensor)
      assert isinstance(caer_luv_yuv, caer.Tensor)
  
      assert caer_yuv_yuv.shape == cv_yuv.shape
      assert caer_bgr_yuv.shape == cv_yuv.shape
      assert caer_gray_yuv.shape == cv_yuv.shape
      assert caer_hsv_yuv.shape == cv_yuv.shape
      assert caer_hls_yuv.shape == cv_yuv.shape
      assert caer_rgb_yuv.shape == cv_yuv.shape
      assert caer_lab_yuv.shape == cv_yuv.shape
      assert caer_luv_yuv.shape == cv_yuv.shape
  
      assert caer_yuv_yuv.cspace == "yuv"
      assert caer_bgr_yuv.cspace == "yuv"
      assert caer_gray_yuv.cspace == "yuv"
      assert caer_hsv_yuv.cspace == "yuv"
      assert caer_hls_yuv.cspace == "yuv"
      assert caer_rgb_yuv.cspace == "yuv"
      assert caer_lab_yuv.cspace == "yuv"
      assert caer_luv_yuv.cspace == "yuv"
  
      assert len(caer_yuv_yuv.shape) == 3
      assert len(caer_bgr_yuv.shape) == 3
      assert len(caer_gray_yuv.shape) == 3
      assert len(caer_hsv_yuv.shape) == 3
      assert len(caer_hls_yuv.shape) == 3
      assert len(caer_rgb_yuv.shape) == 3
      assert len(caer_lab_yuv.shape) == 3
      assert len(caer_luv_yuv.shape) == 3
  
file_path: caer/tests/color/test_core.py
imports: import caer
  import cv2
  import os
label_desc: Use image node_id 7 for calling a global function with example usage: test_to_yuv() without return types