[Autograd Testing] Add a test where child reentrant task fails. (#35223)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35223
Adding tests as part of
https://github.com/pytorch/pytorch/issues/34367.
This test covers
"Mixed with errors" ->
"Reentrant on same device" ->
"Make child error before parent finishes"
ghstack-source-id: 100725947
Test Plan: waitforbuildbot
Differential Revision: D20603127
fbshipit-source-id: 08484b0a98053491459e076bdd23caf042c47150