code: def test_intensity_location(
      image, measurements, module, objects, workspace
  ):
      data = (
          numpy.array(
              [
                  [0, 0, 0, 0, 0, 0, 0],
                  [0, 1, 1, 1, 1, 1, 0],
                  [0, 1, 1, 1, 1, 2, 0],
                  [0, 1, 1, 1, 1, 1, 0],
                  [0, 1, 1, 1, 1, 1, 0],
                  [0, 1, 1, 1, 1, 1, 0],
                  [0, 0, 0, 0, 0, 0, 0],
              ]
          ).astype(float)
          / 2.0
      )
  
      image.pixel_data = data
  
      labels = (data != 0).astype(int)
  
      objects.segmented = labels
  
      module.run(workspace)
  
      for feature, value in (
          (cellprofiler.modules.measureobjectintensity.LOC_MAX_X, 5),
          (cellprofiler.modules.measureobjectintensity.LOC_MAX_Y, 2),
      ):
          feature_name = "%s_%s_%s" % (
              C_LOCATION,
              feature,
              "MyImage",
          )
  
          values = measurements.get_current_measurement(
              OBJECT_NAME, feature_name
          )
  
          assert len(values) == 1
  
          assert values[0] == value
  
imports: import math
  import centrosome.outline
  import numpy
  import numpy.testing
  import pytest
  import skimage.measure
  import skimage.segmentation
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import EXPERIMENT, COLTYPE_FLOAT, C_LOCATION
  import cellprofiler.modules.measureobjectintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 14 for calling a global function with example usage: test_intensity_location(image, measurements, module, objects, workspace) without return types