code: def _test_pass_vector_via_iterator(X, pos=0):
      """
      Assume X.ndim == 2
      """
      # axis == 0
      x = pass_vector_via_iterator(X, axis=0, niters=pos)
      assert_array_equal(x, X[:, pos])
      # axis == 1
      x = pass_vector_via_iterator(X, axis=1, niters=pos)
      assert_array_equal(x, X[pos, :])
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..None import c_types, copy_vector, copy_via_iterators, fff_type, npy_type, pass_array, pass_matrix, pass_vector, pass_vector_via_iterator, sum_via_iterators
label_desc: Use image node_id 19 for calling a global function with example usage: _test_pass_vector_via_iterator(X, pos) without return types