code: def test_get_measurement_images():
      workspace, module = make_workspace(
          dict(image=numpy.zeros((20, 10), bool)),
          dict(image=numpy.zeros((20, 10), bool)),
      )
  
      for feature in cellprofiler.modules.measureimageoverlap.FTR_ALL:
          imnames = module.get_measurement_images(
              workspace.pipeline,
              "Image",
              cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
              feature,
          )
          assert len(imnames) == 1
          assert imnames[0] == TEST_IMAGE_NAME
      imnames = module.get_measurement_images(
          workspace.pipeline,
          "Image",
          cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
          "Foo",
      )
      assert len(imnames) == 0
      imnames = module.get_measurement_images(
          workspace.pipeline,
          "Image",
          "Foo",
          cellprofiler.modules.measureimageoverlap.FTR_FALSE_NEG_RATE,
      )
      assert len(imnames) == 0
      imnames = module.get_measurement_images(
          workspace.pipeline,
          "Foo",
          cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
          cellprofiler.modules.measureimageoverlap.FTR_FALSE_NEG_RATE,
      )
      assert len(imnames) == 0
  
imports: import io
  import numpy
  import numpy.random
  import numpy.testing
  import scipy.ndimage
  import cellprofiler_library.opts.measureimageoverlap
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureimageoverlap
  import tests.frontend.modules
label_desc: Use image node_id 20 for calling a global function with example usage: test_get_measurement_images() without return types