[ONNX] Add diagonal symbolic (#64454) (#66144)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66144
* Add logic and tests
* minor edits
* Eliminate expand ops
* Fix flake and editing
* Modified errant message
* Add overrun check
* Add overrun descriptions
* Remove emptyline
Test Plan: Imported from OSS
Reviewed By: jansel
Differential Revision: D31424095
fbshipit-source-id: 5b8ef6ac21c32d43c3dbc8e51e1ef30bffb19c25