code: def random_images(n, shape):
      with tmpdir() as dirname:
          for i in range(n):
              fn = os.path.join(dirname, "image.%d.png" % i)
              x = np.random.randint(0, 255, size=shape).astype("u1")
              imsave(fn, x, check_contrast=False)
  
          yield os.path.join(dirname, "*.png")
  
file_path: dask/dask/array/tests/test_image.py
imports: from __future__ import annotations
  import os
  from contextlib import contextmanager
  import pytest
  import numpy
  from skimage.io import imsave
  from dask.array.image import imread
  from dask.utils import tmpdir
label_desc: Use image node_id 1 for calling a global function with example usage: random_images(n, shape) without return types