code: def test_reduce_invalid_axes():
      class Batch3DInvalidAxes(Batch3D):
          def valid_axes(self):  # Invalid axes
              return [-100, (100, 0)]
  
      batch_fn = Batch3DInvalidAxes(np.uint8)
      dali_reduce_fn, numpy_reduce_fn = reduce_fns["sum"]
  
      for axes in batch_fn.valid_axes():
          with assert_raises(
              RuntimeError, glob="Axis index out of range"
          ):
              dali_res_cpu, dali_res_gpu = run_dali(
                  dali_reduce_fn,
                  batch_fn,
                  keep_dims=False,
                  axes=axes,
                  output_type=np.uint8,
              )
  
imports: import nvidia.dali.fn
  from nvidia.dali.pipeline import Pipeline
  from nose.tools import nottest
  import numpy
  from test_utils import np_type_to_dali
  from nose_utils import assert_raises
label_desc: Use image node_id 11 for calling a global function with example usage: test_reduce_invalid_axes() and returns: list