code: def test_slice_with_out_of_bounds_error():
      in_shape = (40, 80, 3)
      for device in ["gpu", "cpu"]:
          for batch_size in [1, 3]:
              for normalized_anchor, normalized_shape in [
                  (False, False),
                  (True, True),
              ]:
                  yield (
                      check_slice_with_out_of_bounds_error,
                      device,
                      batch_size,
                      in_shape,
                      normalized_anchor,
                      normalized_shape,
                  )
  
imports: from nvidia.dali import Pipeline, pipeline_def, ops, fn, types
  import numpy
  import os
  from functools import partial
  from math import floor
  from test_utils import compare_pipelines, get_dali_extra_path, RandomDataIterator, generator_random_axes_for_3d_input, generator_random_data, as_array
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 14 for calling a global function with example usage: test_slice_with_out_of_bounds_error() without return types