code: def pairwise(seq):
      """
      Pair an iterable, e.g., (1, 2, 3, 4) -> ((1, 2), (2, 3), (3, 4))
      """
      for i in range(0, len(seq) - 1):
          yield (seq[i], seq[i + 1])
  
imports: import logging
  from decimal import Decimal
label_desc: Use image node_id 1 for calling a global function with example usage: pairwise(seq) without return types