def METHOD_NAME(meta_data: MetaDataSet, max_distance) -> None:
    images, positions, labels, centers = meta_data.load_clusters()
    clusters = tools.add_cluster_neighbors(positions, labels, centers, max_distance)
    image_clusters = []
    for cluster in clusters:
        image_clusters.append(list(np.take(images, np.array(cluster))))
    meta_data.save_clusters_with_neighbors(image_clusters)