code: def test_default_filter(self):
      for mode in "L", "RGB", "I", "F":
          im = hopper(mode)
          assert im.resize((20, 20), Image.BICUBIC) == im.resize(
              (20, 20)
          )
  
      for mode in "1", "P":
          im = hopper(mode)
          assert im.resize((20, 20), Image.NEAREST) == im.resize(
              (20, 20)
          )
  
      for mode in "I;16", "I;16L", "I;16B", "BGR;15", "BGR;16":
          im = hopper(mode)
          assert im.resize((20, 20), Image.NEAREST) == im.resize(
              (20, 20)
          )
  
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 2 for calling the TestImageResize obj's underlying member method code with example usage: obj.test_default_filter() without return types