<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
Given a distance matrix, with similarity between various professors :
<ASSISTANT_TASK:>
Python Code:
import numpy as np
import pandas as pd
import sklearn.cluster
data_matrix = load_data()
model = sklearn.cluster.AgglomerativeClustering(affinity='precomputed', n_clusters=2, linkage='complete').fit(data_matrix)
cluster_labels = model.labels_
<END_TASK>