code: def _testimpl_numpy_reader_roi_error(
      file_root,
      batch_size,
      ndim,
      dtype,
      device,
      fortran_order=False,
      file_filter="*.npy",
      roi_start=None,
      rel_roi_start=None,
      roi_end=None,
      rel_roi_end=None,
      roi_shape=None,
      rel_roi_shape=None,
      roi_axes=None,
      out_of_bounds_policy=None,
      fill_value=None,
  ):
      @pipeline_def(batch_size=batch_size, device_id=0, num_threads=8)
      def pipe():
          data = fn.readers.numpy(
              device=device,
              file_root=file_root,
              file_filter=file_filter,
              roi_start=roi_start,
              rel_roi_start=rel_roi_start,
              roi_end=roi_end,
              rel_roi_end=rel_roi_end,
              roi_shape=roi_shape,
              rel_roi_shape=rel_roi_shape,
              roi_axes=roi_axes,
              out_of_bounds_policy=out_of_bounds_policy,
              fill_value=fill_value,
              shard_id=0,
              num_shards=1,
              cache_header_information=False,
          )
          return data
  
      p = pipe()
      err = None
      try:
          p.build()
          p.run()
      except RuntimeError as thrown:
          err = thrown
      # asserts should not be in except block to avoid printing nested exception on failure
      assert err, "Exception not thrown"
  
imports: from nvidia.dali import Pipeline, pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
  import nvidia.dali.backend
  import numpy
  from numpy.testing import assert_array_equal
  import os
  import platform
  import random
  import tempfile
  from nose_utils import assert_raises
  from nose import SkipTest
  from nose2.tools import params, cartesian_params
  from test_utils import compare_pipelines, to_array
label_desc: Use image node_id 28 for calling a global function with example usage: _testimpl_numpy_reader_roi_error(file_root, batch_size, ndim, dtype, device, fortran_order, file_filter, roi_start, rel_roi_start, roi_end, rel_roi_end, roi_shape, rel_roi_shape, roi_axes, out_of_bounds_policy, fill_value) and returns: data