code: def test_filter_sequence(test_images):
      frames = iio.imread(
          test_images / "cockatoo.mp4",
          plugin="pyav",
          filter_sequence=[
              ("drawgrid", "w=iw/3:h=ih/3:t=2:c=white@0.5"),
              ("scale", {"size": "vga", "flags": "lanczos"}),
              ("tpad", "start=3"),
          ],
      )
  
      assert frames.shape == (283, 480, 640, 3)
  
      frames = iio.imread(
          test_images / "cockatoo.mp4",
          plugin="pyav",
          filter_sequence=[
              ("framestep", "5"),
              ("scale", {"size": "vga", "flags": "lanczos"}),
          ],
      )
  
      assert frames.shape == (56, 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 7 for calling a global function with example usage: test_filter_sequence(test_images) without return types