[ONNX] Fix input sequence for pad op (#60554) (#64377)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64377
* Fix for input primitive sequence
* Test mypy
* Fix for tracing tuples
* Fix for extra inputs
* flake8
* Rebase
* Fix for tracing tuples
Test Plan: Imported from OSS
Reviewed By: jansel
Differential Revision: D30919606
Pulled By: malfet
fbshipit-source-id: a718c4a12cda77b968cb636acd7aa63d7b5ba326