from typing import List


def get_labels(clusters: List[List[List]]) -> List[int]:
    """Get the label of each cluster.

    Args:
        clusters: A list of clusters.

    Returns:
        A list of labels.
    """
    labels = []
    for i, cluster in enumerate(clusters):
        labels.extend([i for _ in range(len(cluster))])
    return labels