Clean up `ListLiteral` and `ListComprehension` emission logic (#64952)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64952
Test Plan: Imported from OSS
Reviewed By: bertmaher
Differential Revision: D30914690
Pulled By: ansley
fbshipit-source-id: 83ac9bc6445f89b3f47c5404435bc6058c6f3bd7