code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      PC_DEFAULT = "Default output folder"
      PC_WITH_IMAGE = "Same folder as image"
  
      if variable_revision_number == 1:
          #
          # Minor change: Default output directory -> folder
          #
          new_setting_values = [setting_values[0]]
          for offset in range(1, len(setting_values), 6):
              dir_choice = setting_values[offset + 4]
              custom_path = setting_values[offset + 5]
              if dir_choice == PC_CUSTOM:
                  if custom_path[0] == ".":
                      dir_choice = DEFAULT_OUTPUT_SUBFOLDER_NAME
                  elif custom_path[0] == "&":
                      dir_choice = DEFAULT_OUTPUT_SUBFOLDER_NAME
                      custom_path = "." + custom_path[1:]
                  else:
                      dir_choice = ABSOLUTE_FOLDER_NAME
              directory = Directory.static_join_string(
                  dir_choice, custom_path
              )
              new_setting_values += setting_values[
                  offset : (offset + 4)
              ]
              new_setting_values += [directory]
          setting_values = new_setting_values
          variable_revision_number = 2
  
      # Standardize input/output directory name references
      setting_values = list(setting_values)
      for offset in range(
          5, len(setting_values), VARIABLE_SETTING_COUNT
      ):
          setting_values[offset] = Directory.upgrade_setting(
              setting_values[offset]
          )
  
      return setting_values, variable_revision_number
  
imports: import functools
  import os
  import numpy
  import scipy.optimize
  from cellprofiler_core.constants.measurement import EXPERIMENT
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.constants.measurement import NEIGHBORS
  from cellprofiler_core.constants.module import IO_FOLDER_CHOICE_HELP_TEXT, IO_WITH_METADATA_HELP_TEXT
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import ABSOLUTE_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_INPUT_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_INPUT_SUBFOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_OUTPUT_FOLDER_NAME
  from cellprofiler_core.preferences import DEFAULT_OUTPUT_SUBFOLDER_NAME
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Divider
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.text import Directory
  from cellprofiler_core.setting.text import Text
label_desc: Use image node_id 14 for calling the CalculateStatistics 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