code: def test_get_measurement_images():
      """Test the get_measurment_images function for some different cases"""
      for iocase, names in (
          (
              cellprofiler.modules.measurecolocalization.M_IMAGES,
              ["Image"],
          ),
          (
              cellprofiler.modules.measurecolocalization.M_OBJECTS,
              [OBJECTS_NAME],
          ),
          (
              cellprofiler.modules.measurecolocalization.M_IMAGES_AND_OBJECTS,
              ["Image", OBJECTS_NAME],
          ),
      ):
          module = (
              cellprofiler.modules.measurecolocalization.MeasureColocalization()
          )
          module.images_list.value = ", ".join(
              (IMAGE1_NAME, IMAGE2_NAME)
          )
          module.objects_list.value = OBJECTS_NAME
          module.images_or_objects.value = iocase
          for name, mfs in (
              ("Image", all_image_measurement_formats),
              (OBJECTS_NAME, all_object_measurement_formats),
          ):
              if name not in names:
                  continue
              for mf in mfs:
                  ftr = mf.split("_")[1]
                  ans = module.get_measurement_images(
                      None, name, "Correlation", ftr
                  )
                  expected = [
                      "%s_%s" % (i1, i2)
                      for i1, i2 in (
                          (IMAGE1_NAME, IMAGE2_NAME),
                          (IMAGE2_NAME, IMAGE1_NAME),
                      )
                  ]
                  if mf in asymmetrical_measurement_formats:
                      assert all([e in ans for e in expected])
                  else:
                      assert any([e in ans for e in expected])
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measurecolocalization
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_measurement_images() without return types