def run_algorithm(algorithm, algorithm_kwargs, clustering_id):
    """
    This function launches an execution of one clustering algorithm with its parameters. Used mainly to be
    scheduled.

    @param algorithm: Instance of a clustering algorithm.

    @param algorithm_kwargs: The parameters needed by the algorithm above to run.

    @param clustering_id: An id used to define the resulting clustering.
    """
    clustering = algorithm.perform_clustering(algorithm_kwargs)
    return (clustering_id, clustering)