Add the missing test_dynamo_list_index from #119151 (D53392287) (#119854)
D53392287 botched the export somehow and the exported PR https://github.com/pytorch/pytorch/pull/119151 didn't contain the added test. The discrepancy is showing up on diff train patch up diff D53694548
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119854
Approved by: https://github.com/kit1980, https://github.com/malfet