@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose()
def test_nanargmax_tie(self, xp, dtype):
    a = xp.array([0, 5, 2, 3, 4, 5], dtype)
    return xp.nanargmax(a)
@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose()
def test_nanargmax_tie(self, xp, dtype):
    a = xp.array([0, 5, 2, 3, 4, 5], dtype)
    return xp.nanargmax(a)