def check_numbers(matrix, n_clusters):
    """Check if the given matrix has enough rows and columns for the given
    number of co-clusters.

    Parameters
    ----------
    matrix:
        The input matrix

    n_clusters: int
        Number of co-clusters

    Raises
    ------
    ValueError
        If the data matrix has not enough rows or columns.
    """
    if matrix.shape[0] < n_clusters or matrix.shape[1] < n_clusters:
        raise ValueError('data matrix has not enough rows or columns')
