Revert "Refactor expect tests on test_higher_order_ops.py. (#110290)"
This reverts commit d9aecaefbe477256022ae0c0eae3a77a71bcb320.
Reverted https://github.com/pytorch/pytorch/pull/110290 on behalf of https://github.com/kit1980 due to Broke multiple tests and also lint https://github.com/pytorch/pytorch/actions/runs/6384854768/job/17329068768 ([comment](https://github.com/pytorch/pytorch/pull/110290#issuecomment-1743764686))