code: def WriteDistMatrices(D, wspec):
      with WriteHelper(wspec) as writer:
          for id in D:
              writer(id, D[id])
  
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 5 for calling a global function with example usage: WriteDistMatrices(D, wspec) without return types