code: def test_slice_named_default_start_or_end_args():
      yield check_slice_named_args_default_start_or_end, "cpu", 3
      yield check_slice_named_args_default_start_or_end, "gpu", 3
  
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 18 for calling a global function with example usage: test_slice_named_default_start_or_end_args() without return types