code: def test_run(self):
      measurements = cellprofiler_core.measurement.Measurements()
  
      module = (
          cellprofiler_core.module.image_segmentation._image_segmentation.ImageSegmentation()
      )
  
      module.x_name.value = "Image"
  
      image = cellprofiler_core.image.Image(image=numpy.zeros((30, 30)))
  
      image_set_list = cellprofiler_core.image.ImageSetList()
  
      image_set = image_set_list.get_image_set(0)
  
      image_set.add("Image", image)
  
      object_set = cellprofiler_core.object.ObjectSet()
  
      workspace = cellprofiler_core.workspace.Workspace(
          pipeline=None,
          module=module,
          image_set=image_set,
          object_set=object_set,
          measurements=measurements,
          image_set_list=image_set_list,
      )
  
      module.function = lambda x: numpy.ones(
          (30, 30), dtype=numpy.uint8
      )
  
      module.run(workspace)
  
      assert measurements.has_feature(
          "ImageSegmentation",
          cellprofiler_core.constants.measurement.M_LOCATION_CENTER_X,
      )
  
      assert measurements.has_feature(
          "ImageSegmentation",
          cellprofiler_core.constants.measurement.M_LOCATION_CENTER_Y,
      )
  
      assert measurements.has_feature(
          "ImageSegmentation",
          cellprofiler_core.constants.measurement.M_LOCATION_CENTER_Z,
      )
  
      assert measurements.has_feature(
          "ImageSegmentation",
          cellprofiler_core.constants.measurement.M_NUMBER_OBJECT_NUMBER,
      )
  
      assert measurements.has_feature(
          cellprofiler_core.constants.measurement.IMAGE,
          cellprofiler_core.constants.measurement.FF_COUNT
          % "ImageSegmentation",
      )
  
imports: import numpy
  import cellprofiler_core.constants.measurement
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  import cellprofiler_core.module.image_segmentation._image_segmentation
  import cellprofiler_core.object
  import cellprofiler_core.workspace
label_desc: Use image node_id 12 for calling the TestImageSegmentation obj's underlying member method code with example usage: obj.test_run() without return types