class_docstr: Test for ndarray utils.
class_docstr_tok: ["Test","for","ndarray","utils","."]
code: def test_rgb2bgr(self):
      ndarray_img = cv2.imread(logo_path)
      ndarray_img = cv2.cvtColor(ndarray_img, cv2.COLOR_BGR2RGB)
  
      # img_bytes = ndarray_img.tobytes()
      # img_width = ndarray_img.shape[1]
      # img_height = ndarray_img.shape[0]
      # img_channel = len(cv2.split(ndarray_img))
      img_mode = "RGB"
      img_array = ndarray_img
  
      towhee_img = Image(img_array, img_mode)
  
      towhee_bgr = rgb2bgr(towhee_img)
      ndarray_bgr = rgb2bgr(ndarray_img)
  
      self.assertTrue((towhee_bgr == ndarray_bgr).all())
  
file_path: towhee/tests/unittests/utils/test_ndarray_utils.py
imports: import os
  import unittest
  import numpy
  from pathlib import Path
  from towhee.utils.cv2_utils import cv2
  from towhee.types import Image
  from towhee.utils.ndarray_utils import from_ndarray, from_src, to_ndarray, rgb2bgr
label_desc: Use image node_id 4 for calling the TestPilUtils obj's underlying member method code with example usage: obj.test_rgb2bgr() without return types