code: def maybe_download_example_image(folders, file_name, shape=None):
      """Download the given ExampleImages file if not in the directory
  
      folders - sequence of subfolders starting at ExampleImages
      file_name - name of file to fetch
  
      Image will be downloaded if not present to CP_EXAMPLEIMAGES directory.
  
      Returns the local path to the file which is often useful.
      """
      if shape is None:
          shape = (20, 30)
      local_path = os.path.join(
          *tuple([example_images_directory()] + folders + [file_name])
      )
      if not os.path.exists(local_path):
          directory = os.path.join(
              *tuple([example_images_directory()] + folders)
          )
          if not os.path.isdir(directory):
              os.makedirs(directory)
          random_state = numpy.random.RandomState()
          random_state.seed()
          image = (random_state.uniform(size=shape) * 255).astype(
              numpy.uint8
          )
          import skimage.io
  
          skimage.io.imsave(local_path, image.astype("uint8"))
      return local_path
  
file_path: CellProfiler/tests/core/modules/__init__.py
imports: import os
  import tempfile
  import logging
  import functools
  import hashlib
  import numpy
  import unittest
  from urllib.request import URLopener
  import skimage.io
  import cellprofiler_core.utilities.legacy
label_desc: Use image node_id 5 for calling a global function with example usage: maybe_download_example_image(folders, file_name, shape) and returns: local_path