docstr: Get slices to use for a pair of arrays, given an offset
  
  offset - offset to be applied to the second array
  
  An offset imposes border conditions on an array, for instance,
  an offset of 1 means that the first array has a slice of :-1
  and the second has a slice of 1:. Return the slice to use
  for the first and second arrays.
docstr_tok: ["Get","slices","to","use","for","a","pair","of","arrays",",","given","an","offset","offset","-","offset","to","be","applied","to","the","second","array","An","offset","imposes","border","conditions","on","an","array",",","for","instance",",","an","offset","of","1","means","that","the","first","array","has","a","slice","of",":","-1","and","the","second","has","a","slice","of","1",":",".","Return","the","slice","to","use","for","the","first","and","second","arrays","."]
code: def get_slices(offset):
      """Get slices to use for a pair of arrays, given an offset
  
      offset - offset to be applied to the second array
  
      An offset imposes border conditions on an array, for instance,
      an offset of 1 means that the first array has a slice of :-1
      and the second has a slice of 1:. Return the slice to use
      for the first and second arrays.
      """
      if offset > 0:
          s0, s1 = slice(0, -offset), slice(
              offset, numpy.iinfo(int).max
          )
      elif offset < 0:
          s1, s0 = IdentifyDeadWorms.get_slices(-offset)
      else:
          s0 = s1 = slice(0, numpy.iinfo(int).max)
      return s0, s1
  
imports: import matplotlib.cm
  import numpy
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_NUMBER_OBJECT_NUMBER, FF_COUNT, COLTYPE_FLOAT, IMAGE, C_COUNT, C_LOCATION, C_NUMBER, FTR_CENTER_X, FTR_CENTER_Y, FTR_OBJECT_NUMBER
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects, ObjectSet
  from cellprofiler_core.preferences import get_default_colormap
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting.subscriber import ImageSubscriber
  from cellprofiler_core.setting.text import LabelName, Integer, Float
  from centrosome.cpmorphology import all_connected_components
  from centrosome.cpmorphology import fixup_scipy_ndimage_result
  from centrosome.cpmorphology import get_line_pts
  from scipy.ndimage import binary_erosion, binary_fill_holes
  from scipy.ndimage import mean
label_desc: Use image node_id 11 for calling the IdentifyDeadWorms obj's underlying member method code with example usage: obj.get_slices(offset) and returns: s0,  s1