[PG Wrapper] Add sequence number (#97462)
Adds sequence number to PG wrapper
Differential Revision: [D44347419](https://our.internmc.facebook.com/intern/diff/D44347419/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97462
Approved by: https://github.com/zhaojuanmao