code: def test_binary_global():
      """Test a binary threshold with Otsu global method"""
      numpy.random.seed(0)
      image = numpy.random.uniform(size=(20, 20))
      threshold = skimage.filters.threshold_otsu(image)
      expected = image > threshold
      workspace, module = make_workspace(image)
      module.threshold_scope.value = (
          cellprofiler.modules.threshold.TS_GLOBAL
      )
      module.global_operation.value = centrosome.threshold.TM_OTSU
      module.run(workspace)
      output = workspace.image_set.get_image(OUTPUT_IMAGE_NAME)
      assert numpy.all(output.pixel_data == expected)
  
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 10 for calling a global function with example usage: test_binary_global() without return types