code: def _gen_pairs(seq):
      test_seq = np.random.RandomState(0).permutation(seq)
      for i in range(0, len(seq), 2):
          j = (i + 1) % len(seq)
          yield test_seq[i], test_seq[j]
  
file_path: mars/mars/tensor/fuse/tests/test_numexpr_execution.py
imports: import numpy
  from ....utils import ignore_warning
  from ...arithmetic import abs
  from ...datasource import tensor, arange
  from ...reduction import sum
label_desc: Use image node_id 2 for calling a global function with example usage: _gen_pairs(seq) without return types