code: def get_wer(refs: List[str], hyps: List[str]):
      """
      args:
          refs (list of str): reference texts
          hyps (list of str): hypothesis/prediction texts
      """
      n_words, n_errors = 0, 0
      for ref, hyp in zip(refs, hyps):
          ref, hyp = ref.split(), hyp.split()
          n_words += len(ref)
          n_errors += editdistance.eval(ref, hyp)
      return safe_divide(n_errors, n_words)
  
file_path: espnet/egs2/slue-voxpopuli/asr1/local/eval_utils.py
imports: from collections import defaultdict
  from typing import List
  import editdistance
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: get_wer(refs, hyps) and returns: safe_divide