def METHOD_NAME(dendrogram, tolerance, criterion):
    """Obtain the clusters."""
    log.info('Clustering dendrogram...')
    cluster_arr = fcluster(dendrogram, t=tolerance, criterion=criterion)
    return cluster_arr