@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose(accept_error=ValueError)
def test_nanargmax_nan3(self, xp, dtype):
    a = xp.array([float('nan'), float('nan'), (- 1), 1, 1.0, (- 2.0)], dtype)
    return xp.nanargmax(a)
@testing.for_all_dtypes(no_complex=True)
@testing.numpy_cupy_allclose(accept_error=ValueError)
def test_nanargmax_nan3(self, xp, dtype):
    a = xp.array([float('nan'), float('nan'), (- 1), 1, 1.0, (- 2.0)], dtype)
    return xp.nanargmax(a)