code: def load_reco2dur(reco2dur_file):
      """Returns dictionary { recid: duration }."""
      if not os.path.exists(reco2dur_file):
          return None
      lines = [
          line.strip().split(None, 1) for line in open(reco2dur_file)
      ]
      return {x[0]: float(x[1]) for x in lines}
  
imports: from __future__ import print_function
  import io
  import os
  import subprocess
  import sys
  from functools import lru_cache
  import numpy
  import soundfile
label_desc: Use image node_id 8 for calling a global function with example usage: load_reco2dur(reco2dur_file) and returns: unknown, None