code: def get_sha1(source):
      src_info = source_info(source)
  
      if src_info["is_file"]:  # Is this a file?
          return sha1sum_file(src_info["pathname"])
      else:  # Then it should be an url
          return sha1sum_url(source)
  
file_path: TimeSide/timeside/plugins/decoder/utils.py
imports: from __future__ import division
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: get_sha1(source) and returns: sha1sum_file, sha1sum_url