code: def test_kwarg_forwarding(tmp_path):
      rng = np.random.default_rng()
  
      # Write the frames to an animated GIF
      with iio.get_writer(
          tmp_path / "tmp.gif", duration=1000, loop=0, pilmode="RGB"
      ) as writer:
          for _ in range(10):
              frame = rng.integers(
                  0, 255, (100, 100, 3), dtype=np.uint8
              )
              writer.append_data(frame)
  
      imgs = np.stack(iio.mimread(tmp_path / "tmp.gif"))
      assert imgs.shape == (10, 100, 100, 3)
  
      with iio.get_reader(tmp_path / "tmp.gif", pilmode="L") as file:
          img = file.get_next_data()
  
          assert img.shape == (100, 100)
          assert img.meta["duration"] == 1000
          assert img.meta["loop"] == 0
  
file_path: imageio/tests/test_v2.py
imports: import pytest
  import imageio.v2
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: test_kwarg_forwarding(tmp_path) without return types