This PR updates tensor.expand_shape and tensor.collapse_shape ODS definitions to require ranked tensor operands/results by switching from AnyTensor to AnyRankedTensor. Fixes https://github.com/llvm/llvm-project/issues/178228
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.