first cut of adding a dangling impl test. fix #45165 (#46484)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/46484
Test Plan: Imported from OSS
Reviewed By: ezyang, izdeby
Differential Revision: D24392625
Pulled By: bdhirsh
fbshipit-source-id: a6ab9c53e3e580e5713e08b20682ee6f8ed3bd84