This model receives the input anchor image and its neighbours, produces the clusters assignments for them using the clustering_model, and produces two outputs: 1. similarity: the similarity between the cluster assignments of the anchor image and its neighbours. This output is fed to the ClustersConsistencyLoss. 2. anchor_clustering: cluster assignments of the anchor images. This is fed to the ClustersEntropyLoss.