code: def test_quantize_no_dither():
      image = hopper()
      with Image.open("Tests/images/caption_6_33_22.png") as palette:
          palette = palette.convert("P")
  
      converted = image.quantize(
          dither=Image.Dither.NONE, palette=palette
      )
      assert converted.mode == "P"
      assert converted.palette.palette == palette.palette.palette
  
file_path: pillow/Tests/test_image_quantize.py
imports: from __future__ import annotations
  import pytest
  from packaging.version import parse
  from PIL import Image, features
  from .helper import assert_image_similar, hopper, is_ppc64le, skip_unless_feature
label_desc: Use image node_id 6 for calling a global function with example usage: test_quantize_no_dither() without return types