def check_clusterings(labels_true, labels_pred):
    """Check that the labels arrays are 1D and of same dimension.
    Parameters
    ----------
    labels_true : array-like of shape (n_samples,)
        The true labels.
    labels_pred : array-like of shape (n_samples,)
        The predicted labels.
    """
    if labels_true.ndim != 1:
        raise ValueError('labels_true must be 1D: shape is %r' % (
            labels_true.shape,))
    if labels_pred.ndim != 1:
        raise ValueError('labels_pred must be 1D: shape is %r' % (
            labels_pred.shape,))
    return labels_true, labels_pred
