code: def decode_resize_ffmpeg(mode, height, width, seek):
      filter_desc = (
          None
          if mode is None
          else f"scale={width}:{height}:sws_flags={mode}"
      )
      s = StreamReader(test_src)
      s.add_video_stream(1, filter_desc=filter_desc)
      s.seek(seek)
      s.fill_buffer()
      (chunk,) = s.pop_chunks()
      return chunk
  
imports: import torch
  import torchaudio
  import os
  import time
  import matplotlib.pyplot
  from torchaudio.io import StreamReader
  from torchaudio.utils import ffmpeg_utils
label_desc: Use image node_id 6 for calling a global function with example usage: decode_resize_ffmpeg(mode, height, width, seek) and returns: chunk