code: def run_decode_tests(src, frames_per_chunk=5):
      fps = []
      print(f"Testing: {os.path.basename(src)}")
      for threads in [1, 4, 8, 16]:
          print(f"* Software decoding (num_threads={threads})")
          fps.append(test_decode_cpu(src, threads))
      print("* Hardware decoding")
      fps.append(test_decode_cuda(src, decoder="h264_cuvid"))
      return fps
  
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 11 for calling a global function with example usage: run_decode_tests(src, frames_per_chunk) and returns: fps