def get_cluster_labels(labels, factor=600):
    """
    Each label is repeated factor=600 times. E.g. labels is a list
    with [1,2] of length 2, then this method returns a list of length
    1200 and the list is [1,1,1...,2,2,2]
    """
    # Make sure labels is iterable
    copy = list(labels)
    labels_multiplied = []
    for label_list in ([i]*factor for i in copy):
        labels_multiplied += label_list
    return labels_multiplied