code: def test_from_PIL(self):
      try:
          import PIL.Image
      except ImportError:
          pytest.skip("PIL not available")
  
      pim = PIL.Image.new("RGB", (42, 23))
  
      im = pyvips.Image.new_from_array(pim)
      assert im.format == "uchar"
      assert im.interpretation == "srgb"
      assert im.width == pim.width
      assert im.height == pim.height
      assert im.min() == 0
      assert im.max() == 0
  
file_path: pyvips/tests/test_image.py
imports: import pyvips
  import pytest
  from helpers import JPEG_FILE
label_desc: Use image node_id 11 for calling the TestImage obj's underlying member method code with example usage: obj.test_from_PIL() without return types