code: def example_images_directory():
      global __temp_example_images_folder
      if "CP_EXAMPLEIMAGES" in os.environ:
          return os.environ["CP_EXAMPLEIMAGES"]
      fyle = os.path.abspath(__file__)
      d = os.path.split(fyle)[
          0
      ]  # trunk.CellProfiler.tests.core.modules
      d = os.path.split(d)[0]  # trunk.CellProfiler.tests.core
      d = os.path.split(d)[0]  # trunk.CellProfiler.tests
      d = os.path.split(d)[0]  # trunk.CellProfiler
      d = os.path.split(d)[0]  # trunk
      for imagedir in ["CP-CPEXAMPLEIMAGES", "ExampleImages"]:
          path = os.path.join(d, imagedir)
          if os.path.exists(path):
              return path
      if __temp_example_images_folder is None:
          __temp_example_images_folder = tempfile.mkdtemp(
              prefix="cp_exampleimages"
          )
          LOGGER.warning(
              "Creating temporary folder %s for example images"
              % __temp_example_images_folder
          )
      return __temp_example_images_folder
  
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 1 for calling a global function with example usage: example_images_directory() and returns: __temp_example_images_folder, os, path