[ONNX] Special post process for onnx::Cast and onnx::ConstantOfShape shape type inference (#55962)
* Special post process for onnx::Cast and onnx::ConstantOfShape
* Update `test_pytorch_onnx_shape_inference.py` to be unit test over shape inference patterns.
Co-authored-by: BowenBao <bowbao@microsoft.com>