code: def test_ffmpeg_resize(util):
      outputfile = os.path.join(
          util.TMP_DIR, "moviepy_ffmpeg_resize.mp4"
      )
      if os.path.isfile(outputfile):
          os.remove(outputfile)
  
      expected_size = (30, 30)
  
      ffmpeg_resize(
          "media/bitmap.mp4", outputfile, expected_size, logger=None
      )
      assert os.path.isfile(outputfile)
  
      # overwrite file
      with pytest.raises(OSError):
          ffmpeg_resize(
              "media/bitmap.mp4", outputfile, expected_size, logger=None
          )
  
      clip = VideoFileClip(outputfile)
      assert clip.size[0] == expected_size[0]
      assert clip.size[1] == expected_size[1]
  
      if os.path.isfile(outputfile):
          try:
              os.remove(outputfile)
          except PermissionError:
              pass
  
imports: import os
  import shutil
  import pytest
  from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip, ffmpeg_resize, ffmpeg_stabilize_video
  from moviepy.video.io.VideoFileClip import VideoFileClip
label_desc: Use image node_id 2 for calling a global function with example usage: test_ffmpeg_resize(util) without return types