code: def test_to_bgr():
      caer_bgr_bgr = caer.to_bgr(cv_bgr)
      caer_rgb_bgr = caer.to_bgr(cv_rgb)
      caer_gray_bgr = caer.to_bgr(cv_gray)
      caer_hsv_bgr = caer.to_bgr(cv_hsv)
      caer_hls_bgr = caer.to_bgr(cv_hls)
      caer_lab_bgr = caer.to_bgr(cv_lab)
      caer_yuv_bgr = caer.to_bgr(cv_yuv)
      caer_luv_bgr = caer.to_bgr(cv_luv)
  
      assert isinstance(caer_bgr_bgr, caer.Tensor)
      assert isinstance(caer_rgb_bgr, caer.Tensor)
      assert isinstance(caer_gray_bgr, caer.Tensor)
      assert isinstance(caer_hsv_bgr, caer.Tensor)
      assert isinstance(caer_hls_bgr, caer.Tensor)
      assert isinstance(caer_lab_bgr, caer.Tensor)
      assert isinstance(caer_yuv_bgr, caer.Tensor)
      assert isinstance(caer_luv_bgr, caer.Tensor)
  
      assert caer_bgr_bgr.shape == cv_bgr.shape
      assert caer_rgb_bgr.shape == cv_bgr.shape
      assert caer_gray_bgr.shape == cv_bgr.shape
      assert caer_hsv_bgr.shape == cv_bgr.shape
      assert caer_hls_bgr.shape == cv_bgr.shape
      assert caer_lab_bgr.shape == cv_bgr.shape
      assert caer_yuv_bgr.shape == cv_bgr.shape
      assert caer_luv_bgr.shape == cv_bgr.shape
  
      assert caer_bgr_bgr.cspace == "bgr"
      assert caer_rgb_bgr.cspace == "bgr"
      assert caer_gray_bgr.cspace == "bgr"
      assert caer_hsv_bgr.cspace == "bgr"
      assert caer_hls_bgr.cspace == "bgr"
      assert caer_lab_bgr.cspace == "bgr"
      assert caer_yuv_bgr.cspace == "bgr"
      assert caer_luv_bgr.cspace == "bgr"
  
      assert len(caer_bgr_bgr.shape) == 3
      assert len(caer_rgb_bgr.shape) == 3
      assert len(caer_gray_bgr.shape) == 3
      assert len(caer_hsv_bgr.shape) == 3
      assert len(caer_hls_bgr.shape) == 3
      assert len(caer_lab_bgr.shape) == 3
      assert len(caer_yuv_bgr.shape) == 3
      assert len(caer_luv_bgr.shape) == 3
  
file_path: caer/tests/color/test_core.py
imports: import caer
  import cv2
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_bgr() without return types