code: def test_resize(self):
      def resize(mode, size):
          out = hopper(mode).resize(size)
          assert out.mode == mode
          assert out.size == size
  
      for mode in "1", "P", "L", "RGB", "I", "F":
          resize(mode, (112, 103))
          resize(mode, (188, 214))
  
      # Test unknown resampling filter
      with hopper() as im:
          with pytest.raises(ValueError):
              im.resize((10, 10), "unknown")
  
imports: from itertools import permutations
  import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar, hopper
label_desc: Use image node_id 1 for calling the TestImageResize obj's underlying member method code with example usage: obj.test_resize() without return types