code: def test_video_reader_values(
      reader_class,
      num_frames_per_clip,
      clips_per_video,
      is_training,
      output_video_fps,
      output_audio_fps,
      num_samples_per_clip,
      frame_stack_format,
  ):
      if reader_class is DecordAVReader and "decord" not in sys.modules:
          pytest.skip("Decord (optional dependncy) is not installed.")
      reader_name = "pyav" if reader_class is PyAVReader else "decord"
      # This test makes sure that the values in the clips for perfect videos are different
      opts = get_config()
      setattr(
          opts, "dataset.collate_fn_name_train", "default_collate_fn"
      )
      setattr(opts, "dataset.collate_fn_name_val", "default_collate_fn")
      setattr(opts, "video_reader.name", reader_name)
      setattr(
          opts, "video_reader.frame_stack_format", frame_stack_format
      )
      testfile = "tests/data/dummy_video.mov"
      reader = reader_class(opts, is_training=is_training)
      video, audio, metadata = reader.read_video_file_into_clips(
          testfile,
          num_frames_per_clip=num_frames_per_clip,
          clips_per_video=clips_per_video,
          is_training=is_training,
          output_video_fps=output_video_fps,
          output_audio_fps=output_audio_fps,
          num_samples_per_clip=num_samples_per_clip,
      ).values()
  
      # Dummy video has 114 frames.
      total_frames = 114
      if num_frames_per_clip > total_frames:
          assert torch.allclose(
              video[:-1], video[1:]
          ), "Not all video clips are the same."
          assert torch.allclose(
              audio[:-1], audio[1:]
          ), "Not all audio clips are the same."
      else:
          assert not torch.allclose(
              video[:-1], video[1:]
          ), "All video clips are the same."
          assert not torch.allclose(
              audio[:-1], audio[1:]
          ), "All audio clips are the same."
  
imports: import sys
  import pytest
  import torch
  from data.video_reader.decord_reader import DecordAVReader
  from data.video_reader.pyav_reader import PyAVReader
  from tests.configs import get_config
label_desc: Use image node_id 2 for calling a global function with example usage: test_video_reader_values(reader_class, num_frames_per_clip, clips_per_video, is_training, output_video_fps, output_audio_fps, num_samples_per_clip, frame_stack_format) without return types