code: def ffmpeg_resize(inputfile, outputfile, size, logger="bar"):
      """Resizes a file to new size and write the result in another.
  
      Parameters
      ----------
  
      inputfile : str
        Path to the file to be resized.
  
      outputfile : str
        Path to the output file.
  
      size : list or tuple
        New size in format ``[width, height]`` for the output file.
      """
      cmd = [
          FFMPEG_BINARY,
          "-i",
          inputfile,
          "-vf",
          "scale=%d:%d" % (size[0], size[1]),
          outputfile,
      ]
  
      subprocess_call(cmd, logger=logger)
  
file_path: moviepy/moviepy/video/io/ffmpeg_tools.py
imports: import os
  from moviepy.config import FFMPEG_BINARY
  from moviepy.decorators import convert_parameter_to_seconds, convert_path_to_string
  from moviepy.tools import subprocess_call
label_desc: Use image node_id 4 for calling a global function with example usage: ffmpeg_resize(inputfile, outputfile, size, logger) without return types