code: def test_multiple_skipped_dims():
      data = [
          np.arange(64, dtype=np.float32).reshape(4, 2, 2, 4),
          np.arange(120, dtype=np.float32).reshape(4, 2, 3, 5),
      ]
      src = fn.external_source(lambda: data, layout="ABCD")
      pipe = index_pipe(src, lambda x: x[1, :, :, 1])
      pipe.build()
      inp, cpu, gpu = pipe.run()
      for i in range(len(inp)):
          x = inp.at(i)
          assert np.array_equal(x[1, :, :, 1], cpu.at(i))
          assert np.array_equal(x[1, :, :, 1], gpu.as_cpu().at(i))
  
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 19 for calling a global function with example usage: test_multiple_skipped_dims() without return types