code: def source_info(source):
      import os.path
  
      src_info = {"is_file": False, "uri": "", "pathname": ""}
  
      if os.path.exists(source):
          src_info["is_file"] = True
          # get the absolute path
          src_info["pathname"] = os.path.abspath(source)
          # and make a uri of it
          src_info["uri"] = path2uri(src_info["pathname"])
      return src_info
  
file_path: TimeSide/timeside/plugins/decoder/utils.py
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: source_info(source) and returns: src_info