code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      if variable_revision_number == 1:
          #
          # Added "wants_gabor"
          #
          setting_values = (
              setting_values[:-1] + ["Yes"] + setting_values[-1:]
          )
  
          variable_revision_number = 2
  
      if variable_revision_number == 2:
          #
          # Added angles
          #
          image_count = int(setting_values[0])
  
          object_count = int(setting_values[1])
  
          scale_count = int(setting_values[2])
  
          scale_offset = 3 + image_count + object_count
  
          new_setting_values = setting_values[:scale_offset]
  
          for scale in setting_values[
              scale_offset : scale_offset + scale_count
          ]:
              new_setting_values += [scale, "Horizontal"]
  
          new_setting_values += setting_values[
              scale_offset + scale_count :
          ]
  
          setting_values = new_setting_values
  
          variable_revision_number = 3
  
      if variable_revision_number == 3:
          #
          # Added image / objects choice
          #
          setting_values = setting_values + [IO_BOTH]
  
          variable_revision_number = 4
  
      if variable_revision_number == 4:
          #
          #  Removed angles
          #
          image_count, object_count, scale_count = setting_values[:3]
          scale_offset = 3 + int(image_count) + int(object_count)
          scales = setting_values[scale_offset::2][: int(scale_count)]
          new_setting_values = setting_values[:scale_offset] + scales
  
          #
          # Removed "wants_gabor", and "gabor_angles"
          #
          new_setting_values += setting_values[-1:]
  
          setting_values = new_setting_values
          variable_revision_number = 5
      if variable_revision_number == 5:
          num_images = int(setting_values[0])
          num_objects = int(setting_values[1])
          num_scales = setting_values[2]
          div_img = 3 + num_images
          div_obj = div_img + num_objects
          images_set = set(setting_values[3:div_img])
          objects_set = set(setting_values[div_img:div_obj])
          scales_list = setting_values[div_obj:-1]
  
          if "None" in images_set:
              images_set.remove("None")
          if "None" in objects_set:
              objects_set.remove("None")
          images_string = ", ".join(map(str, images_set))
          objects_string = ", ".join(map(str, objects_set))
  
          module_mode = setting_values[-1]
          setting_values = [
              images_string,
              objects_string,
              num_scales,
              module_mode,
          ] + scales_list
          variable_revision_number = 6
  
      if variable_revision_number == 6:
          setting_values = (
              setting_values[:2] + ["256"] + setting_values[2:]
          )
          variable_revision_number = 7
  
      return setting_values, variable_revision_number
  
imports: import cellprofiler.gui.help.content
  import cellprofiler.icons
  import mahotas.features
  import numpy
  import skimage.exposure
  import skimage.measure
  import skimage.util
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import HiddenCount, Divider, SettingsGroup, ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething, RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageListSubscriber, LabelListSubscriber
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.utilities.core.object import size_similarly
label_desc: Use image node_id 21 for calling the MeasureTexture obj's underlying member method code with example usage: obj.upgrade_settings(setting_values, variable_revision_number, module_name) and returns: setting_values,  variable_revision_number