code: def test_gif_irregular_duration(test_images, tmp_path):
      im = iio.imread(
          test_images / "newtonscradle.gif",
          plugin="pillow",
          mode="RGBA",
      )
      duration = [
          0.5 if idx in [2, 5, 7] else 0.1 for idx in range(im.shape[0])
      ]
  
      with iio.imopen(
          tmp_path / "test.gif", "w", plugin="pillow"
      ) as file:
          for frame, duration in zip(im, duration):
              file.write(frame, duration=duration)
  
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 14 for calling a global function with example usage: test_gif_irregular_duration(test_images, tmp_path) without return types