text: import lshlink as lsh
  import numpy as np
  import matplotlib.pyplot as plt
  from collections import defaultdict
  from sklearn import datasets
  from scipy.cluster.hierarchy import dendrogram, linkage, cophenet
  from scipy.spatial.distance import pdist
  from functools import reduce, lru_cache
  import datetime
  import pickle
  import pstats
  import pandas as pd
  import multiprocessing
  from mpl_toolkits.mplot3d import Axes3D