code: def test_sanity_error(mode):
      with pytest.raises(TypeError):
          im = hopper(mode)
          im.filter("hello")
  
file_path: pillow/Tests/test_image_filter.py
imports: from __future__ import annotations
  import pytest
  from PIL import Image, ImageFilter
  from .helper import assert_image_equal, hopper
label_desc: Use image node_id 2 for calling a global function with example usage: test_sanity_error(mode) without return types