code: def pairwise(iterable):
      """From itertools cookbook. [a, b, c, ...] -> (a, b), (b, c), ..."""
      first, second = tee(iterable)
      next(second, None)
      return zip(first, second)
  
imports: from collections import OrderedDict, defaultdict
  from itertools import tee
  import matplotlib.pyplot
  import numpy
  from matplotlib.colors import to_rgba
  from matplotlib.lines import Line2D
  from ....stats import hdi
  from ....stats.density_utils import get_bins, histogram, kde
  from ....stats.diagnostics import _ess, _rhat
  from ....sel_utils import xarray_var_iter
  from ....utils import conditional_jit
  from ...plot_utils import _scale_fig_size
  from .None import backend_kwarg_defaults, backend_show
label_desc: Use image node_id 1 for calling a global function with example usage: pairwise(iterable) and returns: zip