code: def pairwise(iterable):
      "s -> (s0,s1), (s1,s2), (s2, s3), ..."
      from itertools import tee
  
      a, b = tee(iterable)
      next(b, None)
      return zip(a, b)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from functools import wraps
  import copy
  import numpy
  from caffe2.python import core, workspace
  from caffe2.proto import caffe2_pb2
label_desc: Use image node_id 9 for calling a global function with example usage: pairwise(iterable) and returns: zip