[JIT] Add support for list() (#33818)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33818
Test Plan: Imported from OSS
Differential Revision: D20121915
Pulled By: eellison
fbshipit-source-id: c6c4ef444dbf1d4134dccb28c13315e225945b64