@testing.for_all_dtypes(no_complex=True)
def test_nanargmin_zero_size_axis0(self, dtype):
    for xp in (numpy, cupy):
        a = testing.shaped_random((0, 1), xp, dtype)
        with pytest.raises(ValueError):
            return xp.nanargmin(a, axis=0)
@testing.for_all_dtypes(no_complex=True)
def test_nanargmin_zero_size_axis0(self, dtype):
    for xp in (numpy, cupy):
        a = testing.shaped_random((0, 1), xp, dtype)
        with pytest.raises(ValueError):
            return xp.nanargmin(a, axis=0)