[JIT] List reland (#36146)
Summary:
Relanding https://github.com/pytorch/pytorch/pull/33783
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36146
Differential Revision: D20895316
Pulled By: eellison
fbshipit-source-id: 9a2bc0e6bdcbd43f9abe51eadaa28f90bccafcc9