pub fn partition_across_dimensions( dims: &[usize], candidate_dims: &[usize], requested: usize, ) -> Vec<Vec<DimPartition>>