Fix test_python_dispatch under debug mode (#98609)
The problem for these operators is that they were returning the input
directly as the output. This isn't support and will raise debug asserts.
Test Plan:
- Test locally. The debug build in CI doesn't actually do anything.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98609
Approved by: https://github.com/ezyang, https://github.com/bdhirsh