docstr: Adjust settings based on revision # of save file
  
  setting_values - sequence of string values as they appear in the
                   saved pipeline
  variable_revision_number - the variable revision number of the module
                             at the time of saving
  module_name - the name of the module that did the saving
  
  returns the updated setting_values, revision # and matlab flag
docstr_tok: ["Adjust","settings","based","on","revision","#","of","save","file","setting_values","-","sequence","of","string","values","as","they","appear","in","the","saved","pipeline","variable_revision_number","-","the","variable","revision","number","of","the","module","at","the","time","of","saving","module_name","-","the","name","of","the","module","that","did","the","saving","returns","the","updated","setting_values",",","revision","#","and","matlab","flag"]
code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      """Adjust settings based on revision # of save file
  
      setting_values - sequence of string values as they appear in the
                       saved pipeline
      variable_revision_number - the variable revision number of the module
                                 at the time of saving
      module_name - the name of the module that did the saving
  
      returns the updated setting_values, revision # and matlab flag
      """
      if variable_revision_number == 1:
          # Added multiple settings, but, if you only had 1,
          # the order didn't change
          variable_revision_number = 2
  
      if variable_revision_number == 2:
          # If revision < 2, remove rescaling option; warning user and suggest RescaleIntensity instead.
          # Keep the prior selection around for the validation warning.
          SLOT_RESCALE_OPTION = 4
          SETTINGS_PER_IMAGE_V2 = 5
          rescale_option = setting_values[
              SLOT_RESCALE_OPTION::SETTINGS_PER_IMAGE_V2
          ]
          for i, image in enumerate(self.images):
              image.rescale_option = rescale_option[i]
          del setting_values[SLOT_RESCALE_OPTION::SETTINGS_PER_IMAGE_V2]
  
          variable_revision_number = 3
      else:
          # If revision >= 2, initialize rescaling option for validation warning
          for i, image in enumerate(self.images):
              image.rescale_option = RE_NONE
  
      if variable_revision_number == 3:
          setting_values.append("No")
          variable_revision_number = 4
  
      if variable_revision_number == 4:
          setting_values = setting_values[:-1]
          setting_values += [True, True]
          variable_revision_number = 5
  
      return setting_values, variable_revision_number
  
imports: import numpy
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Divider, Binary
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.text import ImageName
label_desc: Use image node_id 10 for calling the CorrectIlluminationApply 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