code: def test_incremental_gif_write(tmp_path):
      # this is a regression test for
      # https://github.com/imageio/imageio/issues/974
  
      rng = np.random.default_rng()
  
      with iio.imopen(
          tmp_path / "test.gif", "w", plugin="pillow"
      ) as file:
          for _ in range(10):
              img = rng.integers(0, 255, (100, 100, 3), dtype=np.uint8)
              file.write(img)
  
      final_gif = iio.imread(tmp_path / "test.gif")
      assert final_gif.shape == (10, 100, 100, 3)
  
imports: import io
  import os
  from pathlib import Path
  import imageio.v3
  import numpy
  import pytest
  from imageio.core.request import InitializationError, Request
  from imageio.core.v3_plugin_api import PluginV3
  from imageio.plugins.pillow import PillowPlugin
  from PIL import Image, ImageSequence, ImageOps, __version__
label_desc: Use image node_id 41 for calling a global function with example usage: test_incremental_gif_write(tmp_path) without return types