[torch_np] update test to use ones_like instead of empty_like (#105453)
This test fails locally (probably because deterministic mode is not on by default).
We replace the use of `empty_like` to `ones_like` as this test doesn't need `empty_like`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/105453
Approved by: https://github.com/lezcano