def intra_cluster_dist(data=None, dist=None, labels=None):
    (intra_dist, _) = cluster_distances(dist, labels, metric='precomputed')
    return intra_dist
def intra_cluster_dist(data=None, dist=None, labels=None):
    (intra_dist, _) = cluster_distances(dist, labels, metric='precomputed')
    return intra_dist