code: def _test_permute_batch_out_of_range(device):
      batch_size = 10
      pipe = Pipeline(batch_size, 4, 0)
      data = fn.external_source(
          source=lambda: gen_data(batch_size, np.int32),
          device=device,
          layout="abc",
      )
      perm = fn.batch_permutation()
      pipe.set_outputs(
          data,
          fn.permute_batch(
              data, indices=[0, 1, 2, 3, 4, 5, 10, 7, 8, 9]
          ),
          perm,
      )
      pipe.build()
      pipe.run()
  
file_path: DALI/dali/test/python/operator_1/test_batch_permute.py
imports: import nvidia.dali
  import nvidia.dali.fn
  from nvidia.dali.pipeline import Pipeline
  import numpy
  from test_utils import check_batch
  from nose_utils import raises
label_desc: Use image node_id 9 for calling a global function with example usage: _test_permute_batch_out_of_range(device) without return types