code: def test_threshold_from_measurement():
      """Test a binary threshold from previous measurements"""
      numpy.random.seed(0)
      image = numpy.random.uniform(size=(20, 20))
      workspace, module = make_workspace(image)
      module.threshold_scope.value = (
          cellprofiler.modules.threshold.TS_GLOBAL
      )
      module.global_operation.value = (
          cellprofiler.modules.threshold.TM_MANUAL
      )
      module.manual_threshold.value = 0.5
      module.run(workspace)
  
      module2 = cellprofiler.modules.threshold.Threshold()
      module2.x_name.value = OUTPUT_IMAGE_NAME
      module2.y_name.value = OUTPUT_IMAGE_NAME + "new"
      module2.threshold_scope.value = (
          cellprofiler.modules.threshold.TS_GLOBAL
      )
      module2.global_operation.value = (
          cellprofiler.modules.threshold.TM_MEASUREMENT
      )
      module2.thresholding_measurement.value = (
          "Threshold_FinalThreshold_" + OUTPUT_IMAGE_NAME
      )
      module2.run(workspace)
  
imports: import io
  import centrosome.filter
  import centrosome.otsu
  import centrosome.threshold
  import numpy
  import numpy.testing
  import skimage.filters
  import skimage.filters.rank
  import skimage.morphology
  import cellprofiler.modules.threshold
  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 FF_ORIG_THRESHOLD
  from cellprofiler_core.constants.module._identify import TS_GLOBAL
  import cellprofiler_library.modules
  import cellprofiler_library.functions
  import tests.frontend.modules
label_desc: Use image node_id 14 for calling a global function with example usage: test_threshold_from_measurement() without return types