code: def test_one_false_positive():
      i, j = numpy.mgrid[0:10, 0:20]
      ground_truth = ((i + j) % 2) == 0
      test = ground_truth.copy()
      test[0, 1] = True
      workspace, module = make_workspace(
          dict(image=ground_truth), dict(image=test)
      )
      module.run(workspace)
      measurements = workspace.measurements
      precision = 100.0 / 101.0
      f_factor = 2 * precision / (1 + precision)
      for feature, expected in (
          (
              cellprofiler.modules.measureimageoverlap.FTR_FALSE_POS_RATE,
              0.01,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_FALSE_NEG_RATE,
              0,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_TRUE_POS_RATE,
              1,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_TRUE_NEG_RATE,
              0.99,
          ),
          (cellprofiler.modules.measureimageoverlap.FTR_RECALL, 1),
          (
              cellprofiler.modules.measureimageoverlap.FTR_PRECISION,
              precision,
          ),
          (
              cellprofiler.modules.measureimageoverlap.FTR_F_FACTOR,
              f_factor,
          ),
          (
              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 round(abs(expected - value), 7) == 0, (
              "%s is wrong" % feature
          )
  
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 9 for calling a global function with example usage: test_one_false_positive() without return types