code: def get_measurements(self, pipeline, object_name, category):
      if object_name == "Image" and category == C_IMAGE_QUALITY:
          result = []
          if self.any_scaling():
              result += [cellprofiler_core.constants.image.C_SCALING]
          if self.any_blur():
              result += [
                  F_FOCUS_SCORE,
                  F_LOCAL_FOCUS_SCORE,
                  F_POWER_SPECTRUM_SLOPE,
                  F_CORRELATION,
              ]
          if self.any_intensity():
              result += [
                  F_TOTAL_VOLUME
                  if pipeline.volumetric()
                  else F_TOTAL_AREA
              ]
              result += INTENSITY_FEATURES
          if self.any_saturation():
              result += SATURATION_FEATURES
          if self.any_threshold():
              thresholds = []
              for image_group in self.image_groups:
                  all_threshold_groups = (
                      self.build_threshold_parameter_list()
                      if image_group.use_all_threshold_methods.value
                      else image_group.threshold_groups
                  )
                  thresholds += [
                      F_THRESHOLD + threshold_group.threshold_algorithm
                      for threshold_group in all_threshold_groups
                      if image_group.calculate_threshold.value
                  ]
              result += sorted(list(set(thresholds)))
  
          return result
      elif object_name == EXPERIMENT and category == C_IMAGE_QUALITY:
          return [
              MEAN_THRESH_ALL_IMAGES,
              MEDIAN_THRESH_ALL_IMAGES,
              STD_THRESH_ALL_IMAGES,
          ]
      return []
  
imports: import itertools
  import logging
  import cellprofiler_core.utilities.image
  import centrosome.cpmorphology
  import centrosome.haralick
  import centrosome.radial_power_spectrum
  import centrosome.threshold
  import centrosome.threshold
  import numpy
  import scipy.linalg.basic
  import scipy.ndimage
  from cellprofiler_core.constants.image import C_SCALING
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, EXPERIMENT, MCA_AVAILABLE_POST_RUN
  from cellprofiler_core.constants.module._identify import O_WEIGHTED_VARIANCE, O_ENTROPY, O_FOREGROUND, O_BACKGROUND
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import get_headless
  from cellprofiler_core.setting import Divider, HiddenCount, SettingsGroup, Binary, ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething, RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageListSubscriber
  from cellprofiler_core.setting.text import ImageName, Integer, Float
  from cellprofiler.modules.threshold import O_THREE_CLASS, O_TWO_CLASS
label_desc: Use image node_id 20 for calling the MeasureImageQuality obj's underlying member method code with example usage: obj.get_measurements(pipeline, object_name, category) and returns: list, result, list