[codemod][type-comments] Convert type comments in examples.py (#73085)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73085
I'm wrapping up the conversion of type comments to type annotations
in caffe2. The last remaining "bulk" codemod has test failures that
are hard for me to understand, so I'm going to submit PRs for each
module individually which makes it easier to see what's causing
problems.
All the codemods were produced via LibCST and then manually cleaned up.
Test Plan: Wait for github CI
Reviewed By: shannonzhu
Differential Revision: D34344276
fbshipit-source-id: f64edc13533a6f62fb278dd16fe68f74d89442a7
(cherry picked from commit 061c60e918169ac0006f73f27c4f2a7a83a76249)