code: def test_slice_with_out_of_bounds_policy_support():
      in_shape = (40, 80, 3)
      for out_of_bounds_policy in ["pad", "trim_to_shape"]:
          for device in ["gpu", "cpu"]:
              for batch_size in [1, 3]:
                  for normalized_anchor, normalized_shape in [
                      (False, False),
                      (True, True),
                  ]:
                      for fill_values in [None, (0x76, 0xB0, 0x00)]:
                          yield (
                              check_slice_with_out_of_bounds_policy_support,
                              device,
                              batch_size,
                              in_shape,
                              out_of_bounds_policy,
                              fill_values,
                              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 12 for calling a global function with example usage: test_slice_with_out_of_bounds_policy_support() without return types