code: def temp_encoded_video_with_audio(
      num_frames: int,
      fps: int,
      num_audio_samples: int,
      audio_rate: int = 48000,
      height=10,
      width=10,
      prefix=None,
  ):
      audio_data = torch.from_numpy(
          np.random.rand(1, num_audio_samples).astype("<i2")
      )
      video_data = create_dummy_video_frames(num_frames, height, width)
      with tempfile.NamedTemporaryFile(
          prefix=prefix, suffix=".avi"
      ) as f:
          f.close()
          write_audio_video(
              f.name,
              video_data,
              audio_data,
              fps=fps,
              audio_rate=audio_rate,
          )
          cthw_video_data = thwc_to_cthw(video_data).to(torch.float32)
          yield f.name, cthw_video_data, audio_data[0].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 4 for calling a global function with example usage: temp_encoded_video_with_audio(num_frames, fps, num_audio_samples, audio_rate, height, width, prefix) without return types