code: def test_mp4_read_bytes(test_images):
      encoded_video = (test_images / "cockatoo.mp4").read_bytes()
  
      img_expected = iio.imread(encoded_video, index=5)
      img = iio.imread(encoded_video, plugin="pyav", index=5)
  
      assert np.allclose(img, img_expected)
  
imports: import io
  import warnings
  from contextlib import ExitStack
  from pathlib import Path
  import numpy
  import pytest
  from conftest import IS_PYPY
  import imageio.v3
  from av.video.format import names
  from imageio.plugins.pyav import _format_to_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: test_mp4_read_bytes(test_images) without return types