code: def test_unsupported_modes():
      im = Image.new("P", (10, 10))
      with pytest.raises(ValueError):
          im.reduce(3)
  
      im = Image.new("1", (10, 10))
      with pytest.raises(ValueError):
          im.reduce(3)
  
      im = Image.new("I;16", (10, 10))
      with pytest.raises(ValueError):
          im.reduce(3)
  
file_path: pillow-simd/Tests/test_image_reduce.py
imports: import pytest
  from PIL import Image, ImageMath, ImageMode
  from .helper import convert_to_comparable, skip_unless_feature
label_desc: Use image node_id 3 for calling a global function with example usage: test_unsupported_modes() without return types