code: def test_missing_penalty():
      #
      # Test that the missing penalty works
      #
      src = numpy.zeros((20, 10), bool)
      dest = numpy.zeros((20, 10), bool)
      src[2, 2] = True
      dest[2, 2] = True
      dest[8, 7] = True
      dest[2, 6] = True
      workspace, module = make_workspace(
          dict(image=src), dict(image=dest)
      )
      module.penalize_missing.value = True
      module.max_distance.value = 8
      module.run(workspace)
      assert (
          workspace.measurements[
              "Image",
              module.measurement_name(
                  cellprofiler.modules.measureimageoverlap.FTR_EARTH_MOVERS_DISTANCE
              ),
          ]
          == 16
      )
  
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 25 for calling a global function with example usage: test_missing_penalty() without return types