code: def pdist(X):
      """Condensed pairwise distances, like scipy.spatial.distance.pdist()"""
      return pairwise_distances(X)[np.triu_indices(X.shape[0], 1)]
  
file_path: Multicore-TSNE/MulticoreTSNE/tests/test_base.py
imports: import unittest
  from functools import partial
  import numpy
  from sklearn.datasets import make_blobs
  from sklearn.metrics import pairwise_distances
  from MulticoreTSNE import MulticoreTSNE
label_desc: Use image node_id 1 for calling a global function with example usage: pdist(X) and returns: pairwise_distances