code: def pairwise(iterable, cyclic=False):
      "s -> (s0, s1), (s1, s2), (s2, s3), ..."
      a, b = tee(iterable)
      first = next(b, None)
      if cyclic is True:
          return zip(a, chain(b, (first,)))
      return zip(a, b)
  
imports: import sys
  import uuid
  import warnings
  from collections import defaultdict, deque
  from collections.abc import Iterable, Iterator, Sized
  from itertools import chain, tee
  import networkx
label_desc: Use image node_id 7 for calling a global function with example usage: pairwise(iterable, cyclic) and returns: zip, zip