def METHOD_NAME(self, dtype):
    expected_exc = ValueError
    casting = "unknown"
    A_np = np.ones((2, 4))
    B_np = np.ones((4, 3), dtype=dtype)
    A_num = num.ones((2, 4))
    B_num = num.ones((4, 3), dtype=dtype)
    # In Numpy, raise ValueError
    with pytest.raises(expected_exc):
        np.matmul(A_np, B_np, casting=casting)
    # cuNumeric does not check casting when A and B are of the same dtype
    with pytest.raises(expected_exc):
        num.matmul(A_num, B_num, casting=casting)