code: def ReadXvecs(rspec):
      xvecs = dict()
      with ReadHelper(rspec) as reader:
          for utid, xvec in reader:
              xvecs[utid] = xvec
      reader.close()
      return xvecs
  
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 2 for calling a global function with example usage: ReadXvecs(rspec) and returns: xvecs