code: def temp_frame_video(frame_image_file_names, height=10, width=10):
      data = create_dummy_video_frames(
          len(frame_image_file_names), height, width
      )
      data = thwc_to_cthw(data)
      with tempfile.TemporaryDirectory() as root_dir:
          root_dir = pathlib.Path(root_dir)
          root_dir.mkdir(exist_ok=True)
          for i, file_name in enumerate(frame_image_file_names):
              im = transforms.ToPILImage()(data[:, i])
              im.save(
                  root_dir / file_name, compress_level=0, optimize=False
              )
  
          yield root_dir, data.to(torch.float32)
  
file_path: pytorchvideo/tests/utils.py
imports: import contextlib
  import os
  import pathlib
  import tempfile
  import av
  import numpy
  import torch
  import torchvision.io
  import torchvision.transforms
  from pytorchvideo.data.dataset_manifest_utils import EncodedVideoInfo, VideoFrameInfo, VideoInfo
  from pytorchvideo.data.utils import thwc_to_cthw
label_desc: Use image node_id 5 for calling a global function with example usage: temp_frame_video(frame_image_file_names, height, width) without return types