code: def test_average_color():
      numpy.random.seed(0)
      images_and_masks = [
          (
              numpy.random.uniform(size=(10, 10, 3)).astype(
                  numpy.float32
              ),
              None,
          )
          for i in range(3)
      ]
      expected = numpy.zeros((10, 10, 3), numpy.float32)
      for image, mask in images_and_masks:
          expected += image
      expected = expected / len(images_and_masks)
      image = run_image_set(
          cellprofiler.modules.makeprojection.P_AVERAGE,
          images_and_masks,
      )
      assert not image.has_mask
      assert numpy.all(
          numpy.abs(image.pixel_data - expected)
          < numpy.finfo(float).eps
      )
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.makeprojection
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 5 for calling a global function with example usage: test_average_color() without return types