code: def test_filtered():
      """Make sure the image shows up in the image set even if filtered
  
      This is similar to issue # 310 - the last image may be filtered before
      the projection is done and the aggregate image is then missing
      from the image set.
      """
      numpy.random.seed(81)
      images_and_masks = [
          (numpy.random.uniform(size=(10, 10)), None) for i in range(3)
      ]
      image = run_image_set(
          cellprofiler.modules.makeprojection.P_AVERAGE,
          images_and_masks,
          run_last=False,
      )
      numpy.testing.assert_array_almost_equal(
          image.pixel_data,
          (images_and_masks[0][0] + images_and_masks[1][0]) / 2,
      )
  
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 18 for calling a global function with example usage: test_filtered() without return types