code: def test_gif_gen(test_images, tmp_path):
      frames = iio.imread(
          test_images / "realshort.mp4",
          plugin="pyav",
          format="rgb24",
          filter_sequence=[
              ("fps", "50"),
              ("scale", "320:-1:flags=lanczos"),
          ],
      )
  
      iio.imwrite(
          tmp_path / "test.gif",
          frames,
          plugin="pyav",
          codec="gif",
          fps=50,
          out_pixel_format="pal8",
          filter_graph=(
              {  # Nodes
                  "split": ("split", ""),
                  "palettegen": ("palettegen", ""),
                  "paletteuse": ("paletteuse", ""),
              },
              [  # Edges
                  ("video_in", "split", 0, 0),
                  ("split", "palettegen", 0, 0),
                  ("split", "paletteuse", 1, 0),
                  ("palettegen", "paletteuse", 0, 1),
                  ("paletteuse", "video_out", 0, 0),
              ],
          ),
      )
  
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 14 for calling a global function with example usage: test_gif_gen(test_images, tmp_path) without return types