code: def test_raises_exception_when_shapes_mismatch(test_images, tmp_path):
      frame_list = [
          np.ones((200, 150), dtype=np.uint8),
          np.ones((256, 256), dtype=np.uint8),
      ]
  
      with pytest.raises(ValueError):
          iio.imwrite(
              tmp_path / "test.gif",
              frame_list,
              plugin="pyav",
              codec="gif",
              out_pixel_format="gray",
              in_pixel_format="gray",
          )
  
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 13 for calling a global function with example usage: test_raises_exception_when_shapes_mismatch(test_images, tmp_path) without return types