docs: def segment_lengths(neurites, neurite_type=NeuriteType.all):
      '''Lengths of the segments in a collection of neurites'''
      def _seg_len(sec):
          '''list of segment lengths of a section'''
          return np.linalg.norm(np.diff(sec.points[:, COLS.XYZ], axis=0), axis=1)
  
      return map_segments(_seg_len, neurites, neurite_type)