code: def test_run_boolean(image, module, workspace):
      module.x_name.value = "example"
  
      module.y_name.value = "labeled"
  
      module.cast_to_bool.value = True
  
      module.run(workspace)
  
      objects = workspace.object_set.get_objects("labeled")
  
      assert len(numpy.unique(objects.segmented)) == 3
  
      measurements = workspace.measurements
  
      assert measurements.has_current_measurements(
          "labeled", M_LOCATION_CENTER_X
      )
      assert measurements.has_current_measurements(
          "labeled", M_LOCATION_CENTER_Y
      )
      assert measurements.has_current_measurements(
          "labeled", M_LOCATION_CENTER_Z
      )
      assert measurements.has_current_measurements(
          "labeled", M_NUMBER_OBJECT_NUMBER
      )
      assert measurements.has_current_measurements(
          "Image",
          FF_COUNT % "labeled",
      )
  
file_path: CellProfiler/tests/frontend/modules/test_convertboolimagetoobjects.py
imports: import numpy
  import numpy.random
  import pytest
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_LOCATION_CENTER_Z, M_NUMBER_OBJECT_NUMBER, FF_COUNT
  import cellprofiler.modules.convertimagetoobjects
label_desc: Use image node_id 6 for calling a global function with example usage: test_run_boolean(image, module, workspace) without return types