code: def path2uri(path):
      """
      Return a valid uri (file scheme) from absolute path name of a file
  
      >>> path2uri('/home/john/my_file.wav')
      'file:///home/john/my_file.wav'
  
      >>> path2uri('C:\Windows\my_file.wav')
      'file:///C%3A%5CWindows%5Cmy_file.wav'
      """
      try:  # py3 version
          from urllib.parse import urljoin
          from urllib.request import pathname2url
      except:  # py2 version
          from urlparse import urljoin
          from urllib import pathname2url
  
      return urljoin("file:", pathname2url(path))
  
file_path: TimeSide/timeside/plugins/decoder/utils.py
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: path2uri(path) and returns: urljoin