add reverse to list (#17001)
Summary:
Add reverse functionality to list. See https://github.com/pytorch/pytorch/issues/16662
```python
import torch
torch.jit.script
def foo():
a = [1, 2, 3, 4]
a.reverse()
return a
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17001
Reviewed By: eellison
Differential Revision: D14092019
Pulled By: driazati
fbshipit-source-id: b353c763677c22312b64dde0db268e2988610ba1