code: def test_all_right():
      numpy.random.seed(34)
      image = numpy.random.uniform(size=(10, 20)) > 0.5
      workspace, module = make_workspace(
          dict(image=image), dict(image=image)
      )
      module.run(workspace)
      measurements = workspace.measurements
      assert isinstance(
          measurements, cellprofiler_core.measurement.Measurements
      )
      for feature, expected in (
          (
              cellprofiler.modules.measureimageoverlap.FTR_FALSE_POS_RATE,
              0,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_FALSE_NEG_RATE,
              0,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_TRUE_POS_RATE,
              1,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_TRUE_NEG_RATE,
              1,
          ),
          (cellprofiler.modules.measureimageoverlap.FTR_RECALL, 1),
          (cellprofiler.modules.measureimageoverlap.FTR_PRECISION, 1),
          (cellprofiler.modules.measureimageoverlap.FTR_F_FACTOR, 1),
          (cellprofiler.modules.measureimageoverlap.FTR_RAND_INDEX, 1),
          (
              cellprofiler.modules.measureimageoverlap.FTR_ADJUSTED_RAND_INDEX,
              1,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_EARTH_MOVERS_DISTANCE,
              0,
          ),
      ):
          mname = "_".join(
              (
                  cellprofiler.modules.measureimageoverlap.C_IMAGE_OVERLAP,
                  feature,
                  TEST_IMAGE_NAME,
              )
          )
          value = measurements.get_current_image_measurement(mname)
          assert expected == value
  
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 8 for calling a global function with example usage: test_all_right() without return types