code: def test_sanity():
      def apply_filter(filter_to_apply):
          for mode in ["L", "RGB", "CMYK"]:
              im = hopper(mode)
              out = im.filter(filter_to_apply)
              assert out.mode == im.mode
              assert out.size == im.size
  
      apply_filter(ImageFilter.BLUR)
      apply_filter(ImageFilter.CONTOUR)
      apply_filter(ImageFilter.DETAIL)
      apply_filter(ImageFilter.EDGE_ENHANCE)
      apply_filter(ImageFilter.EDGE_ENHANCE_MORE)
      apply_filter(ImageFilter.EMBOSS)
      apply_filter(ImageFilter.FIND_EDGES)
      apply_filter(ImageFilter.SMOOTH)
      apply_filter(ImageFilter.SMOOTH_MORE)
      apply_filter(ImageFilter.SHARPEN)
      apply_filter(ImageFilter.MaxFilter)
      apply_filter(ImageFilter.MedianFilter)
      apply_filter(ImageFilter.MinFilter)
      apply_filter(ImageFilter.ModeFilter)
      apply_filter(ImageFilter.GaussianBlur)
      apply_filter(ImageFilter.GaussianBlur(5))
      apply_filter(ImageFilter.BoxBlur(5))
      apply_filter(ImageFilter.UnsharpMask)
      apply_filter(ImageFilter.UnsharpMask(10))
  
      with pytest.raises(TypeError):
          apply_filter("hello")
  
file_path: pillow-simd/Tests/test_image_filter.py
imports: import pytest
  from PIL import Image, ImageFilter
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 1 for calling a global function with example usage: test_sanity() without return types