Add generic list/dict custom op bindings (#17587)
Summary:
Fixes #17017
Sandcastle refuses to land #17037, so trying fresh here
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17587
Differential Revision: D14265402
Pulled By: driazati
fbshipit-source-id: b942721aa9360ac6b3862f552ac95529eb0cf52c