Use isinstance test rather than exact type test for wrap to fake (#89671)
I'm not sure why we did an exact test originally. Let's find out!
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89671
Approved by: https://github.com/voznesenskym