code: def test_no_scaling():
      i, j = numpy.mgrid[-40:40, -40:40]
      #
      # I'll try to calculate the distance the same way as propagate
      # jaywalk min(i,j) times and go straight abs(i - j) times
      #
      jaywalks = numpy.minimum(numpy.abs(i), numpy.abs(j))
      straights = numpy.abs(numpy.abs(i) - numpy.abs(j))
      distance = jaywalks * numpy.sqrt(2) + straights
      labels = (distance <= 35).astype(int)
      r = numpy.random.RandomState()
      r.seed(35)
      image = r.uniform(size=i.shape)
      total_intensity = numpy.sum(image[labels == 1])
      bin_labels = (distance / 5).astype(int)
      bin_labels[bin_labels > 4] = 4
      m = run_module(
          image,
          labels,
          bin_count=4,
          maximum_radius=20,
          wants_scaled=False,
      )
      for bin in range(1, 6):
          data = m.get_current_measurement(
              OBJECT_NAME, feature_frac_at_d(bin, 4)
          )
          assert len(data) == 1
          bin_intensity = numpy.sum(
              image[(labels == 1) & (bin_labels == bin - 1)]
          )
          expected = bin_intensity / total_intensity
          assert round(abs(expected - data[0]), 4) == 0
          data = m.get_current_measurement(
              OBJECT_NAME, feature_mean_frac(bin, 4)
          )
          expected = (
              expected
              * numpy.sum(labels == 1)
              / numpy.sum((labels == 1) & (bin_labels == bin - 1))
          )
          assert round(abs(data[0] - expected), 4) == 0
          data = m.get_current_measurement(
              OBJECT_NAME, feature_radial_cv(bin, 4)
          )
          assert len(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 20 for calling a global function with example usage: test_no_scaling() without return types