@pytest.mark.skipif(skip_cupy_test, reason='CuPy is not installed.')
def test_cupy_backend():
    backend.set_backend('cupy')
    X = (random.randint(0, 10) * 10)
    Y = (random.randint(0, 10) * 10)
    zeros = backend.zeros((X, Y))
    ones = backend.ones((X, Y))
    assert isinstance(backend, CuPyBackend)
    assert isinstance(zeros, cp.ndarray)
    assert isinstance(ones, cp.ndarray)
    assert (backend.int == cp.int64)
    assert (backend.float == cp.float64)
    assert (zeros.shape == (X, Y))
    assert (ones.shape == (X, Y))
    assert (backend.sin(ones).all() == cp.sin(ones).all())
    assert (backend.cos(ones).all() == cp.cos(ones).all())
@pytest.mark.skipif(skip_cupy_test, reason='CuPy is not installed.')
def test_cupy_backend():
    backend.set_backend('cupy')
    X = (random.randint(0, 10) * 10)
    Y = (random.randint(0, 10) * 10)
    zeros = backend.zeros((X, Y))
    ones = backend.ones((X, Y))
    assert isinstance(backend, CuPyBackend)
    assert isinstance(zeros, cp.ndarray)
    assert isinstance(ones, cp.ndarray)
    assert (backend.int == cp.int64)
    assert (backend.float == cp.float64)
    assert (zeros.shape == (X, Y))
    assert (ones.shape == (X, Y))
    assert (backend.sin(ones).all() == cp.sin(ones).all())
    assert (backend.cos(ones).all() == cp.cos(ones).all())