[RFC] [Tensor] Extracting slices from `tensor.collapse_shape`

Thanks for spelling out the use case, affine seems like a reasonable landing place for now.

+1 I expect we’ll start needing an ‘index’ dialect soonish.