Given a 1-D Python array, I need to split it into subsequences of size W (window size) and also to retrieve (W+1)-th element as the label of the corresponding subsequence.