code: def test_img_607():
      """Regression test of bug IMG-607
  
      MeasureObjectIntensityDistribution fails if there are no pixels for
      some of the objects.
      """
      numpy.random.seed(41)
      labels = numpy.array(
          [
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 1, 1, 1, 0, 0, 3, 3, 3, 0],
              [0, 1, 1, 1, 0, 0, 3, 3, 3, 0],
              [0, 1, 1, 1, 0, 0, 3, 3, 3, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          ]
      )
  
      image = numpy.random.uniform(size=labels.shape)
      for center_labels in (labels, None):
          m = run_module(
              image, labels, center_labels=center_labels, bin_count=4
          )
          for bin in range(1, 5):
              data = m.get_current_measurement(
                  OBJECT_NAME, feature_frac_at_d(bin, 4)
              )
              assert len(data) == 3
              assert numpy.isnan(data[1])
  
imports: import io
  import centrosome.propagate
  import numpy
  import scipy.stats
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.module
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureobjectintensitydistribution
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 23 for calling a global function with example usage: test_img_607() without return types