code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      if variable_revision_number == 1:
          (
              objects_or_image,
              objects_name,
              measurement,
              image_name,
              text_color,
              display_image,
              dpi,
              saved_image_contents,
          ) = setting_values
          setting_values = [
              objects_or_image,
              objects_name,
              measurement,
              image_name,
              text_color,
              display_image,
              10,
              2,
              saved_image_contents,
          ]
          variable_revision_number = 2
  
      if variable_revision_number == 2:
          """Added annotation offset"""
          setting_values = setting_values + ["0"]
          variable_revision_number = 3
  
      if variable_revision_number == 3:
          # Added color map mode
          setting_values = setting_values + [
              CT_TEXT,
              get_default_colormap(),
          ]
          variable_revision_number = 4
  
      if variable_revision_number == 4:
          # added wants_image
          setting_values = setting_values + ["Yes"]
          variable_revision_number = 5
      if variable_revision_number == 5:
          # added color_map_scale_choice and color_map_scale
          setting_values = setting_values + [
              CMS_USE_MEASUREMENT_RANGE,
              "0.0,1.0",
          ]
          variable_revision_number = 6
      return setting_values, variable_revision_number
  
imports: import matplotlib.axes
  import matplotlib.cm
  import matplotlib.figure
  import matplotlib.text
  import numpy
  from cellprofiler_core.constants.measurement import C_FILE_NAME
  from cellprofiler_core.constants.measurement import C_PATH_NAME
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_X
  from cellprofiler_core.constants.measurement import M_LOCATION_CENTER_Y
  from cellprofiler_core.image import FileImage
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import get_default_colormap
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Color
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.choice import Colormap
  from cellprofiler_core.setting.range import FloatRange
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
label_desc: Use image node_id 9 for calling the DisplayDataOnImage 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