code: def test_sequential_reading(test_images):
      expected_imgs = [
          iio.imread(test_images / "cockatoo.mp4", index=1),
          iio.imread(test_images / "cockatoo.mp4", index=5),
      ]
  
      with iio.imopen(
          test_images / "cockatoo.mp4", "r", plugin="pyav"
      ) as img_file:
          first_read = img_file.read(
              index=1, thread_type="FRAME", thread_count=2
          )
          second_read = img_file.read(index=5)
          actual_imgs = [first_read, second_read]
  
      assert np.allclose(actual_imgs, expected_imgs)
  
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 21 for calling a global function with example usage: test_sequential_reading(test_images) without return types