@pytest.mark.parametrize('swap', [False, True])
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
def test_ne_object(self, xp, dtype, value, swap):
    a = xp.array([[1, 2, 3], [4, 5, 6]], dtype=dtype)
    if swap:
        return (value != a)
    else:
        return (a != value)
@pytest.mark.parametrize('swap', [False, True])
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
def test_ne_object(self, xp, dtype, value, swap):
    a = xp.array([[1, 2, 3], [4, 5, 6]], dtype=dtype)
    if swap:
        return (value != a)
    else:
        return (a != value)