code: def get_duration(fname):
      with contextlib.closing(wave.open(fname, "r")) as f:
          frames = f.getnframes()
          rate = f.getframerate()
          duration = frames / float(rate)
          return duration
  
file_path: espnet/egs2/microsoft_speech/asr1/local/process.py
imports: import contextlib
  import os
  import random
  import sys
  import wave
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_duration(fname) and returns: duration