Improve Dynamo output graph metadata typing (#184369)
Summary:
- Add TypedDict/NamedTuple schemas for Dynamo output graph metadata.
- Type code object options and context-manager metadata without broad Any containers.
- Widen guard concrete-value conversion to accept the sequence types stored for size/stride metadata.
Drafted via Codex, published after manual review by bobrenjc93
X-link: https://github.com/pytorch/pytorch/pull/184369
Approved by: https://github.com/williamwen42
Reviewed By: izaitsevfb
Differential Revision: D105896198
fbshipit-source-id: 37e81d834ef5477b6436eff46607934d1c0c8418