code: def CalcCosSim(vecs):
      return 1 - squareform(pdist(np.asarray(vecs), "cosine"))
  
file_path: espnet/egs/libri_css/asr1/diarization/calc_cossim_scores.py
imports: import argparse
  import numpy
  from kaldiio import ReadHelper, WriteHelper
  from scipy.spatial.distance import pdist, squareform
label_desc: Use image node_id 4 for calling a global function with example usage: CalcCosSim(vecs) and returns: unknown