Previously, the `translateShape` function hard-coded the `numSymbols` parameter to 0. This makes the affine expression fail when the sparse tensor encoding has symbols. This PR fixes the issue by extracting and passing the `numSymbols` information during translation. A regression test has also been added to ensure this behavior remains supported. Closes #191209