code: def test_pairwise(
      iterator: tp.Iterable[tp.Any],
      expected: tp.List[tp.Tuple[tp.Any, ...]],
  ) -> None:
      output = list(tools.pairwise(iterator))
      testing.printed_assert_equal(output, expected)
  
file_path: nevergrad/nevergrad/common/test_tools.py
imports: import os
  import typing
  import numpy
  from .None import tools
  from .None import testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_pairwise(iterator, expected) without return types