[ONNX] Set tracing_mode through options.dynamic_shapes and enable dynamic tests in test_fx_to_onnx_runtime.py (#100212)
After #99876 and #99877, the dynamic tests are unblocked.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100212
Approved by: https://github.com/BowenBao