code: def test_external_source_iterate_ndarray():
      pipe = Pipeline(4, 3, 0)
  
      batch = make_array([1.5, 2.5, 2, 3], dtype=datapy.float32)
  
      pipe.set_outputs(fn.external_source(batch, batch=False))
      pipe.build()
      run_and_check(pipe, [batch])
  
imports: import functools
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.ops
  from nvidia.dali import Pipeline
  from nose_utils import assert_raises
  from test_utils import check_output
label_desc: Use image node_id 18 for calling a global function with example usage: test_external_source_iterate_ndarray() without return types