code: def test_color_modes():
      with pytest.raises(ValueError):
          box_blur(sample.convert("1"))
      with pytest.raises(ValueError):
          box_blur(sample.convert("P"))
      box_blur(sample.convert("L"))
      box_blur(sample.convert("LA"))
      box_blur(sample.convert("LA").convert("La"))
      with pytest.raises(ValueError):
          box_blur(sample.convert("I"))
      with pytest.raises(ValueError):
          box_blur(sample.convert("F"))
      box_blur(sample.convert("RGB"))
      box_blur(sample.convert("RGBA"))
      box_blur(sample.convert("RGBA").convert("RGBa"))
      box_blur(sample.convert("CMYK"))
      with pytest.raises(ValueError):
          box_blur(sample.convert("YCbCr"))
  
file_path: pillow/Tests/test_box_blur.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageFilter
label_desc: Use image node_id 5 for calling a global function with example usage: test_color_modes() without return types