code: def threshold_visible_settings(self, image_group):
      result = []
      for threshold_group in image_group.threshold_groups:
          if threshold_group.can_remove:
              result += [threshold_group.divider]
          result += [threshold_group.threshold_method]
          if (
              threshold_group.threshold_method.value
              == centrosome.threshold.TM_MOG
          ):
              result += [threshold_group.object_fraction]
          elif (
              threshold_group.threshold_method.value
              == centrosome.threshold.TM_OTSU
          ):
              result += [
                  threshold_group.use_weighted_variance,
                  threshold_group.two_class_otsu,
              ]
              if threshold_group.two_class_otsu.value == O_THREE_CLASS:
                  result += [
                      threshold_group.assign_middle_to_foreground
                  ]
          if threshold_group.can_remove:
              result += [threshold_group.remove_button]
      result += [image_group.add_threshold_button]
      return result
  
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 10 for calling the MeasureImageQuality obj's underlying member method code with example usage: obj.threshold_visible_settings(image_group) and returns: result