code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      if variable_revision_number == 1:
          # Added neighbor objects
          # To upgrade, repeat object_name twice
          #
          setting_values = setting_values[:1] * 2 + setting_values[1:]
          variable_revision_number = 2
      if variable_revision_number == 2:
          # Added border object exclusion
          setting_values = (
              setting_values[:4] + [True] + setting_values[4:]
          )
          variable_revision_number = 3
      return setting_values, variable_revision_number
  
imports: import matplotlib.cm
  import numpy
  import scipy.ndimage
  import scipy.signal
  import skimage.morphology
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  from cellprofiler_core.constants.measurement import MCA_AVAILABLE_EACH_CYCLE
  from cellprofiler_core.constants.measurement import NEIGHBORS
  from cellprofiler_core.image import Image
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects
  from cellprofiler_core.preferences import get_default_colormap
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting.choice import Choice, Colormap
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.workspace import Workspace
  from centrosome.cpmorphology import fixup_scipy_ndimage_result
  from centrosome.cpmorphology import strel_disk, centers_of_labels
  from centrosome.outline import outline
label_desc: Use image node_id 15 for calling the MeasureObjectNeighbors 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