Add generic list/dict custom op bindings (#17037)
Summary:
Fixes #17017
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17037
Differential Revision: D14095703
Pulled By: driazati
fbshipit-source-id: 2b5ae20d42ad21c98c86a8f1cd7f1de175510507