code: def _test_out_of_range(device, idx):
      data = [np.uint8([1, 2, 3]), np.uint8([1, 2])]
      src = fn.external_source(lambda: data, device=device)
      pipe = index_pipe(src, lambda x: x[idx])
      pipe.build()
      with assert_raises(RuntimeError, glob="out of range"):
          _ = pipe.run()
  
imports: from nvidia import dali
  from nvidia.dali import fn
  import numpy
  from nvidia.dali.pipeline import Pipeline
  from nose_utils import assert_raises
label_desc: Use image node_id 13 for calling a global function with example usage: _test_out_of_range(device, idx) without return types