class_docstr: Test Image class.
code: def towhee_image(self, ImageClass):  # pylint: disable=invalid-name
      img_height = 600
      img_width = 400
      img_channel = 3
      img_mode = "RGB"
  
      img_array = np.random.rand(img_height, img_width, img_channel)
      array_size = img_array.shape
      towhee_img = ImageClass(img_array, img_mode)
  
      self.assertEqual(towhee_img.width, img_width)
      self.assertEqual(towhee_img.height, img_height)
      self.assertEqual(towhee_img.channel, img_channel)
      self.assertEqual(towhee_img.mode, img_mode)
      self.assertTrue((towhee_img == img_array).all())
  
      self.assertEqual(array_size[0], img_height)
      self.assertEqual(array_size[1], img_width)
      self.assertEqual(array_size[2], img_channel)
  
      self.assertTrue((towhee_img == img_array).all())
  
file_path: towhee/tests/unittests/types/test_image.py
imports: import unittest
  import numpy
  import towhee
  from towhee.types import Image
  from towhee._types import Image
label_desc: Use image node_id 1 for calling the TestImage obj's underlying member method code with example usage: obj.towhee_image(ImageClass) without return types