code: def test_write_video_with_audio(self, tmpdir):
      f_name = os.path.join(VIDEO_DIR, "R6llTwEh07w.mp4")
      video_tensor, audio_tensor, info = io.read_video(
          f_name, pts_unit="sec"
      )
  
      out_f_name = os.path.join(tmpdir, "testing.mp4")
      io.video.write_video(
          out_f_name,
          video_tensor,
          round(info["video_fps"]),
          video_codec="libx264rgb",
          options={"crf": "0"},
          audio_array=audio_tensor,
          audio_fps=info["audio_fps"],
          audio_codec="aac",
      )
  
      out_video_tensor, out_audio_tensor, out_info = io.read_video(
          out_f_name, pts_unit="sec"
      )
  
      assert info["video_fps"] == out_info["video_fps"]
      assert_equal(video_tensor, out_video_tensor)
  
      audio_stream = av.open(f_name).streams.audio[0]
      out_audio_stream = av.open(out_f_name).streams.audio[0]
  
      assert info["audio_fps"] == out_info["audio_fps"]
      assert audio_stream.rate == out_audio_stream.rate
      assert (
          pytest.approx(out_audio_stream.frames, rel=0.0, abs=1)
          == audio_stream.frames
      )
      assert audio_stream.frame_size == out_audio_stream.frame_size
  
imports: import contextlib
  import os
  import sys
  import tempfile
  import pytest
  import torch
  import torchvision.io
  from common_utils import assert_equal
  from torchvision import get_video_backend
label_desc: Use image node_id 15 for calling the TestVideo obj's underlying member method code with example usage: obj.test_write_video_with_audio(tmpdir) without return types