code: def test_get_measurements():
      workspace, module = make_workspace(
          dict(image=numpy.zeros((20, 10), bool)),
          dict(image=numpy.zeros((20, 10), bool)),
      )
      for wants_emd, features in (
          (
              True,
              list(cellprofiler.modules.measureimageoverlap.FTR_ALL)
              + [
                  cellprofiler.modules.measureimageoverlap.FTR_EARTH_MOVERS_DISTANCE
              ],
          ),
          (False, cellprofiler.modules.measureimageoverlap.FTR_ALL),
      ):
          module.wants_emd.value = wants_emd
          mnames = module.get_measurements(
              workspace.pipeline,
              "Image",
              cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
          )
          assert len(mnames) == len(features)
          assert all(n in features for n in mnames)
          assert all(f in mnames for f in features)
          mnames = module.get_measurements(
              workspace.pipeline,
              "Foo",
              cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
          )
          assert len(mnames) == 0
          mnames = module.get_measurements(
              workspace.pipeline, "Image", "Foo"
          )
          assert len(mnames) == 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 19 for calling a global function with example usage: test_get_measurements() without return types