def path_distance(points):
vecs = np.diff(points, axis=<NUM_LIT:0>)[:, :<NUM_LIT:3>]<EOL>d2 = [np.dot(p, p) for p in vecs]<EOL>return np.sum(np.sqrt(d2))<EOL>
Compute the path distance from given set of points