code: def test_filter_graph(test_images):
      frames = iio.imread(
          test_images / "cockatoo.mp4",
          plugin="pyav",
          filter_graph=(
              {
                  "step": ("framestep", "5"),
                  "scale": (
                      "scale",
                      {"size": "vga", "flags": "lanczos"},
                  ),
              },
              [
                  ("video_in", "step", 0, 0),
                  ("step", "scale", 0, 0),
                  ("scale", "video_out", 0, 0),
              ],
          ),
      )
  
      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 8 for calling a global function with example usage: test_filter_graph(test_images) without return types