code: def test_02_get_zernike_measurements():
      module = (
          cellprofiler.modules.measureobjectintensitydistribution.MeasureObjectIntensityDistribution()
      )
      for wants_zernikes, ftrs in (
          (
              cellprofiler.modules.measureobjectintensitydistribution.Z_MAGNITUDES,
              (
                  cellprofiler.modules.measureobjectintensitydistribution.FF_ZERNIKE_MAGNITUDE,
              ),
          ),
          (
              cellprofiler.modules.measureobjectintensitydistribution.Z_MAGNITUDES_AND_PHASE,
              (
                  cellprofiler.modules.measureobjectintensitydistribution.FF_ZERNIKE_MAGNITUDE,
                  cellprofiler.modules.measureobjectintensitydistribution.FF_ZERNIKE_PHASE,
              ),
          ),
      ):
          module.wants_zernikes.value = wants_zernikes
          module.zernike_degree.value = 2
  
          module.images_list.value = "DNA, Cytoplasm, Actin"
          for i, object_name, center_name in (
              (0, "Nucleii", None),
              (1, "Cells", "Nucleii"),
              (2, "Cytoplasm", "Nucleii"),
          ):
              if i:
                  module.add_object()
              module.objects[i].object_name.value = object_name
              if center_name is None:
                  module.objects[
                      i
                  ].center_choice.value = (
                      cellprofiler.modules.measureobjectintensitydistribution.C_SELF
                  )
              else:
                  module.objects[
                      i
                  ].center_choice.value = (
                      cellprofiler.modules.measureobjectintensitydistribution.C_CENTERS_OF_OTHER
                  )
                  module.objects[
                      i
                  ].center_object_name.value = center_name
  
          for object_name in "Nucleii", "Cells", "Cytoplasm":
              result = module.get_measurements(
                  None,
                  object_name,
                  cellprofiler.modules.measureobjectintensitydistribution.M_CATEGORY,
              )
              for ftr in ftrs:
                  assert ftr in result
                  iresult = module.get_measurement_images(
                      None,
                      object_name,
                      cellprofiler.modules.measureobjectintensitydistribution.M_CATEGORY,
                      ftr,
                  )
                  for image in "DNA", "Cytoplasm", "Actin":
                      assert image in iresult
                      sresult = module.get_measurement_scales(
                          None,
                          object_name,
                          cellprofiler.modules.measureobjectintensitydistribution.M_CATEGORY,
                          ftr,
                          image,
                      )
                      for n, m in ((0, 0), (1, 1), (2, 0), (2, 2)):
                          assert "%d_%d" % (n, m) in sresult
  
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 12 for calling a global function with example usage: test_02_get_zernike_measurements() without return types