code: def test_to_lab():
      caer_lab_lab = caer.to_lab(cv_lab)
      caer_bgr_lab = caer.to_lab(cv_bgr)
      caer_gray_lab = caer.to_lab(cv_gray)
      caer_hsv_lab = caer.to_lab(cv_hsv)
      caer_hls_lab = caer.to_lab(cv_hls)
      caer_rgb_lab = caer.to_lab(cv_rgb)
      caer_yuv_lab = caer.to_lab(cv_yuv)
      caer_luv_lab = caer.to_lab(cv_luv)
  
      assert isinstance(caer_lab_lab, caer.Tensor)
      assert isinstance(caer_bgr_lab, caer.Tensor)
      assert isinstance(caer_gray_lab, caer.Tensor)
      assert isinstance(caer_hsv_lab, caer.Tensor)
      assert isinstance(caer_hls_lab, caer.Tensor)
      assert isinstance(caer_rgb_lab, caer.Tensor)
      assert isinstance(caer_yuv_lab, caer.Tensor)
      assert isinstance(caer_luv_lab, caer.Tensor)
  
      assert caer_lab_lab.shape == cv_lab.shape
      assert caer_bgr_lab.shape == cv_lab.shape
      assert caer_gray_lab.shape == cv_lab.shape
      assert caer_hsv_lab.shape == cv_lab.shape
      assert caer_hls_lab.shape == cv_lab.shape
      assert caer_rgb_lab.shape == cv_lab.shape
      assert caer_yuv_lab.shape == cv_lab.shape
      assert caer_luv_lab.shape == cv_lab.shape
  
      assert caer_lab_lab.cspace == "lab"
      assert caer_bgr_lab.cspace == "lab"
      assert caer_gray_lab.cspace == "lab"
      assert caer_hsv_lab.cspace == "lab"
      assert caer_hls_lab.cspace == "lab"
      assert caer_rgb_lab.cspace == "lab"
      assert caer_yuv_lab.cspace == "lab"
      assert caer_luv_lab.cspace == "lab"
  
      assert len(caer_lab_lab.shape) == 3
      assert len(caer_bgr_lab.shape) == 3
      assert len(caer_gray_lab.shape) == 3
      assert len(caer_hsv_lab.shape) == 3
      assert len(caer_hls_lab.shape) == 3
      assert len(caer_rgb_lab.shape) == 3
      assert len(caer_yuv_lab.shape) == 3
      assert len(caer_luv_lab.shape) == 3
  
file_path: caer/tests/color/test_core.py
imports: import caer
  import cv2
  import os
label_desc: Use image node_id 6 for calling a global function with example usage: test_to_lab() without return types