[torchbind] Test moving custom classes to/from IValue (#34847)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34847
Test Plan: Imported from OSS
Differential Revision: D20480512
Pulled By: jamesr66a
fbshipit-source-id: 87f5f8ea8764e26d383b17e4f72538166ddd0655