code: def test_sanity():
      image = hopper()
      converted = image.quantize()
      assert converted.mode == "P"
      assert_image_similar(converted.convert("RGB"), image, 10)
  
      image = hopper()
      converted = image.quantize(palette=hopper("P"))
      assert converted.mode == "P"
      assert_image_similar(converted.convert("RGB"), image, 60)
  
file_path: pillow-simd/Tests/test_image_quantize.py
imports: import pytest
  from PIL import Image
  from .helper import assert_image_similar, hopper, is_ppc64le
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity() without return types