code: def calc_wer(hyp_str, ref_str):
      t = WERTransformer(hyp_str, ref_str, verbose=0)
      return t.wer()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import re
  from collections import deque
  from enum import Enum
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: calc_wer(hyp_str, ref_str) and returns: t