code: def _pairwise(iterable):
      # pairwise('ABCDEFG') --> AB BC CD DE EF FG
      # Backport of itertools.pairwise for Python < 3.10.
      a, b = itertools.tee(iterable)
      next(b, None)
      return zip(a, b)
  
imports: import itertools
  import json
  import sys
  from typing import Iterable, Optional, Tuple, List, Sequence, Union
  from packaging.version import parse
  import numpy
  import pyarrow
  from ray.air.util.tensor_extensions.utils import _is_ndarray_variable_shaped_tensor, create_ragged_ndarray
  from ray._private.utils import _get_pyarrow_version
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 5 for calling a global function with example usage: _pairwise(iterable) and returns: zip