code: def test_reduce_filters(self):
      for f in [
          Image.NEAREST,
          Image.BOX,
          Image.BILINEAR,
          Image.HAMMING,
          Image.BICUBIC,
          Image.LANCZOS,
      ]:
          r = self.resize(hopper("RGB"), (15, 12), f)
          assert r.mode == "RGB"
          assert r.size == (15, 12)
  
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 4 for calling the TestImagingCoreResize obj's underlying member method code with example usage: obj.test_reduce_filters() without return types