code: def resize(self, im, size, f):
      # Image class independent version of resize.
      im.load()
      return im._new(im.im.resize(size, f))
  
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 TestImagingCoreResize obj's underlying member method code with example usage: obj.resize(im, size, f) and returns: im