code: def get_scale(scale_1, scale_2):
      if scale_1 is not None and scale_2 is not None:
          return max(scale_1, scale_2)
      elif scale_1 is not None:
          return scale_1
      elif scale_2 is not None:
          return scale_2
      else:
          return 255
  
imports: import numpy
  import scipy.ndimage
  import scipy.stats
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Divider, Binary, ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelListSubscriber, ImageListSubscriber
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.utilities.core.object import size_similarly
  from centrosome.cpmorphology import fixup_scipy_ndimage_result
  from scipy.linalg import lstsq
label_desc: Use image node_id 1 for calling a global function with example usage: get_scale(scale_1, scale_2) and returns: max, scale_1, scale_2, int