code: def test_read_filter(test_images):
      image = iio.imread(
          test_images / "cockatoo.mp4",
          index=5,
          plugin="pyav",
          filter_sequence=[
              ("scale", {"size": "vga", "flags": "lanczos"})
          ],
      )
  
      assert image.shape == (480, 640, 3)
  
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 27 for calling a global function with example usage: test_read_filter(test_images) without return types