code: def endpoints(image):
      return _neighbors(image) == 1
  
imports: import numpy
  import scipy.ndimage
  import skimage.segmentation
  import skimage.util
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting.subscriber import ImageSubscriber
label_desc: Use image node_id 3 for calling a global function with example usage: endpoints(image) and returns: unknown