Update cafe2 hypothesis_test_util to support hypothesis-5 (#39498)
Summary:
Extracting forward-backward `hypothesis` interface update parts of https://github.com/pytorch/pytorch/pull/39430 into a separate PR
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39498
Differential Revision: D21900210
Pulled By: malfet
fbshipit-source-id: 75e637cf839f49dc141d37e1686ce45ff4721245