https://github.com/numpy/numpy/blob/master/numpy/lib/tests/test_stride_tricks.py