class_docstr: Test for pil utils.
code: def test_to_pil(self):
      towhee_img = from_src(logo_path)
      pil_img = to_pil(towhee_img)
  
      self.assertIsInstance(pil_img, PILImage.Image)
  
      self.assertEqual(pil_img.width, towhee_img.width)
      self.assertEqual(pil_img.height, towhee_img.height)
      self.assertEqual(len(pil_img.split()), towhee_img.channel)
      self.assertEqual(pil_img.mode, towhee_img.mode)
      self.assertTrue((np.array(pil_img) == towhee_img).all())
  
file_path: towhee/tests/unittests/utils/test_pil_utils.py
imports: import os
  import unittest
  import numpy
  from pathlib import Path
  from towhee.types import Image
  from towhee.utils.pil_utils import PILImage
  from towhee.utils.pil_utils import from_pil, from_src, to_pil
label_desc: Use image node_id 3 for calling the TestPilUtils obj's underlying member method code with example usage: obj.test_to_pil() without return types