Add `getDynamicValue` to `dynamic_ir` (#82188)
Add `getDynamicValue` to `dynamic_ir`. This is a precondition to support https://github.com/pytorch/xla/issues/3759
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82188
Approved by: https://github.com/Krovatkin