code: def test_n_wise():
      list = [1, 2, 3, 4]
  
      pairs = general.n_wise(list)
  
      for _ in pairs:
          pass
  
      assert type(pairs).__name__ == "callable_iterator" or "generator"
  
imports: import numpy
  from opytimizer.math import general
label_desc: Use image node_id 3 for calling a global function with example usage: test_n_wise() without return types