code: def test_multiple_ndimages(tmp_path):
      volumetric = np.full((4, 255, 255, 3), 114, dtype=np.uint8)
      flat = np.full((255, 255, 3), 114, dtype=np.uint8)
      different_shape = np.full((120, 73, 3), 114, dtype=np.uint8)
      with tifffile.TiffWriter(tmp_path / "nightmare.tiff") as file:
          file.write(volumetric)
          file.write(flat)
          file.write(different_shape)
  
      # imread will read the image at the respective index
      assert iio3.imread(
          tmp_path / "nightmare.tiff", index=0
      ).shape == (4, 255, 255, 3)
      assert iio3.imread(
          tmp_path / "nightmare.tiff", index=1
      ).shape == (255, 255, 3)
      assert iio3.imread(
          tmp_path / "nightmare.tiff", index=2
      ).shape == (120, 73, 3)
  
      # imiter will yield the three images in order
      shapes = [(4, 255, 255, 3), (255, 255, 3), (120, 73, 3)]
      for image, shape in zip(
          iio3.imiter(tmp_path / "nightmare.tiff"), shapes
      ):
          assert image.shape == shape
  
imports: import datetime
  import io
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  from conftest import deprecated_test
  import imageio.v2
  import imageio.v3
  from imageio.config import known_extensions, known_plugins
label_desc: Use image node_id 15 for calling a global function with example usage: test_multiple_ndimages(tmp_path) without return types