code: def create_settings(self):
      self.images_choice = Choice(
          text="Calculate metrics for which images?",
          choices=[O_ALL_LOADED, O_SELECT],
          doc="""\
  This option lets you choose which images will have quality metrics
  calculated.
  
  -  *{O_ALL_LOADED}:* Use all images loaded with the **Input**
     modules. The selected quality metrics will be applied to all
     loaded images.
  -  *{O_SELECT}:* Select the desired images from a list. The quality
     metric settings selected will be applied to the images chosen.
  """.format(
              **{"O_ALL_LOADED": O_ALL_LOADED, "O_SELECT": O_SELECT}
          ),
      )
  
      self.divider = Divider(line=True)
  
      self.image_groups = []
      self.image_count = HiddenCount(self.image_groups, "Image count")
      self.add_image_group(can_remove=False)
      self.add_image_button = DoSomething(
          "", "Add another image list", self.add_image_group
      )
  
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 1 for calling the MeasureImageQuality obj's underlying member method code with example usage: obj.create_settings() without return types