Is there an efficient way to create features from a (NxT) time series and render them into a tensor with shape (NxTxD) in Python? Where, N is the number of samples (here, st