code: def test_libimagequant_quantize():
      image = hopper()
      if is_ppc64le():
          libimagequant = parse_version(
              features.version_feature("libimagequant")
          )
          if libimagequant < parse_version("4"):
              pytest.skip(
                  "Fails with libimagequant earlier than 4.0.0 on ppc64le"
              )
      converted = image.quantize(100, Image.Quantize.LIBIMAGEQUANT)
      assert converted.mode == "P"
      assert_image_similar(converted.convert("RGB"), image, 15)
      assert len(converted.getcolors()) == 100
  
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 2 for calling a global function with example usage: test_libimagequant_quantize() without return types