code: def test_file_api(self):
      num_frames = 11
      fps = 5
      with temp_encoded_video(num_frames=num_frames, fps=fps) as (
          file_name,
          data,
      ):
          with open(file_name, "rb") as f:
              test_video = EncodedVideoPyAV(f)
  
          self.assertAlmostEqual(test_video.duration, num_frames / fps)
          clip = test_video.get_clip(0, test_video.duration + self._EPS)
          frames, audio_samples = clip["video"], clip["audio"]
          self.assertTrue(frames.equal(data))
          self.assertEqual(audio_samples, None)
  
file_path: pytorchvideo/tests/test_data_encoded_video.py
imports: import tempfile
  import unittest
  import pytest
  from pytorchvideo.data.encoded_video import EncodedVideo
  from pytorchvideo.data.encoded_video_pyav import EncodedVideoPyAV
  from utils import temp_encoded_video, temp_encoded_video_with_audio
label_desc: Use image node_id 5 for calling the TestEncodedVideo obj's underlying member method code with example usage: obj.test_file_api() without return types