def cluster_distances(X, labels, *, metric='precomputed', random_state=None, **kwds):
    return intra_inter_distances(X, labels, metric=metric, **kwds)
def cluster_distances(X, labels, *, metric='precomputed', random_state=None, **kwds):
    return intra_inter_distances(X, labels, metric=metric, **kwds)