split numpy array into similar array based on its content,"split_curve(np.array([0, 1]), np.array([0, 1]), 3)"