code: def visible_settings(self):
      visible_settings = [self.use_advanced]
  
      visible_settings += super(
          IdentifyPrimaryObjects, self
      ).visible_settings()
  
      visible_settings += [
          self.size_range,
          self.exclude_size,
          self.exclude_border_objects,
      ]
  
      if self.use_advanced.value:
          visible_settings += self.threshold.visible_settings()[2:]
  
          visible_settings += [
              self.unclump_method,
              self.watershed_method,
          ]
  
          if (
              self.unclump_method != UN_NONE
              and self.watershed_method != WA_NONE
          ):
              visible_settings += [self.automatic_smoothing]
  
              if not self.automatic_smoothing.value:
                  visible_settings += [self.smoothing_filter_size]
  
              visible_settings += [self.automatic_suppression]
  
              if not self.automatic_suppression.value:
                  visible_settings += [self.maxima_suppression_size]
  
              visible_settings += [
                  self.low_res_maxima,
                  self.want_plot_maxima,
              ]
  
              if self.want_plot_maxima.value:
                  visible_settings += [
                      self.maxima_color,
                      self.maxima_size,
                  ]
  
          else:  # self.unclump_method == UN_NONE or self.watershed_method == WA_NONE
              visible_settings = visible_settings[:-2]
  
              if self.unclump_method == UN_NONE:
                  visible_settings += [self.unclump_method]
              else:  # self.watershed_method == WA_NONE
                  visible_settings += [self.watershed_method]
  
          visible_settings += [self.fill_holes, self.limit_choice]
  
          if self.limit_choice != LIMIT_NONE:
              visible_settings += [self.maximum_object_count]
  
      return visible_settings
  
imports: import math
  import cellprofiler_core.module.image_segmentation
  import cellprofiler_core.object
  import centrosome.cpmorphology
  import centrosome.outline
  import centrosome.propagate
  import centrosome.threshold
  import numpy
  import scipy.ndimage
  import scipy.sparse
  import skimage.morphology
  import skimage.segmentation
  from cellprofiler_core.setting import Binary, Color
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.range import IntegerRange
  from cellprofiler_core.setting.text import Integer, Float
  import cellprofiler.gui.help
  import cellprofiler.gui.help.content
  from cellprofiler.modules import _help, threshold
label_desc: Use image node_id 7 for calling the IdentifyPrimaryObjects obj's underlying member method code with example usage: obj.visible_settings() and returns: visible_settings