code: def sum_ranges(ranges):
      result = 0
      for time_range in ranges:
          result += time_range[1] - time_range[0]
      return result
  
imports: import collections
  import os
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: sum_ranges(ranges) and returns: result