code: def test_resize_in_memory():
      tmpdir = tempfile.mkdtemp()
      tmp = tempfile.NamedTemporaryFile(
          dir=tmpdir, suffix=".JPEG", delete=False
      )
      im = Image.new("RGB", original_dimensions)
      im.save(tmp.name, "JPEG")
  
      resize = Operations.Resize(
          probability=1,
          width=larger_dimensions[0],
          height=larger_dimensions[1],
          resample_filter="BICUBIC",
      )
  
      im = [im]
  
      im_resized = resize.perform_operation(im)
      assert im_resized[0].size == larger_dimensions
  
      resize_smaller = Operations.Resize(
          probability=1,
          width=smaller_dimensions[0],
          height=smaller_dimensions[1],
          resample_filter="BICUBIC",
      )
      im_resized_smaller = resize_smaller.perform_operation(im)
  
      assert im_resized_smaller[0].size == smaller_dimensions
  
      tmp.close()
  
file_path: Augmentor/tests/test_resize.py
imports: import os
  import sys
  import Augmentor
  import tempfile
  import io
  import shutil
  from PIL import Image
  from Augmentor import Operations
  import glob
label_desc: Use image node_id 1 for calling a global function with example usage: test_resize_in_memory() without return types