code: def test_to_hls():
      caer_hls_hls = caer.to_hls(cv_hls)
      caer_bgr_hls = caer.to_hls(cv_bgr)
      caer_gray_hls = caer.to_hls(cv_gray)
      caer_hsv_hls = caer.to_hls(cv_hsv)
      caer_rgb_hls = caer.to_hls(cv_rgb)
      caer_lab_hls = caer.to_hls(cv_lab)
      caer_yuv_hls = caer.to_hls(cv_yuv)
      caer_luv_hls = caer.to_hls(cv_luv)
  
      assert isinstance(caer_hls_hls, caer.Tensor)
      assert isinstance(caer_bgr_hls, caer.Tensor)
      assert isinstance(caer_gray_hls, caer.Tensor)
      assert isinstance(caer_hsv_hls, caer.Tensor)
      assert isinstance(caer_rgb_hls, caer.Tensor)
      assert isinstance(caer_lab_hls, caer.Tensor)
      assert isinstance(caer_yuv_hls, caer.Tensor)
      assert isinstance(caer_luv_hls, caer.Tensor)
  
      assert caer_hls_hls.shape == cv_hls.shape
      assert caer_bgr_hls.shape == cv_hls.shape
      assert caer_gray_hls.shape == cv_hls.shape
      assert caer_hsv_hls.shape == cv_hls.shape
      assert caer_rgb_hls.shape == cv_hls.shape
      assert caer_lab_hls.shape == cv_hls.shape
      assert caer_yuv_hls.shape == cv_hls.shape
      assert caer_luv_hls.shape == cv_hls.shape
  
      assert caer_hls_hls.cspace == "hls"
      assert caer_bgr_hls.cspace == "hls"
      assert caer_gray_hls.cspace == "hls"
      assert caer_hsv_hls.cspace == "hls"
      assert caer_rgb_hls.cspace == "hls"
      assert caer_lab_hls.cspace == "hls"
      assert caer_yuv_hls.cspace == "hls"
      assert caer_luv_hls.cspace == "hls"
  
      assert len(caer_hls_hls.shape) == 3
      assert len(caer_bgr_hls.shape) == 3
      assert len(caer_gray_hls.shape) == 3
      assert len(caer_hsv_hls.shape) == 3
      assert len(caer_rgb_hls.shape) == 3
      assert len(caer_lab_hls.shape) == 3
      assert len(caer_yuv_hls.shape) == 3
      assert len(caer_luv_hls.shape) == 3
  
file_path: caer/tests/color/test_core.py
imports: import caer
  import cv2
  import os
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_hls() without return types