code: def _get_roi_error_params():
      # roi_start, rel_roi_start, roi_end, rel_roi_end, roi_shape, rel_roi_shape,
      # roi_axes, out_of_bounds_policy
      roi_args = [
          # Both roi_start and rel_roi_start
          ([1, 2], [0.1, 0.2], None, None, None, None, None, None),
          (
              None,
              None,
              [8, 7],
              [0.4, 0.5],
              None,
              None,
              None,
              None,
          ),  # Both roi_end and rel_roi_end
          (
              None,
              None,
              [8, 7],
              None,
              [8, 7],
              None,
              None,
              None,
          ),  # Both roi_end and roi_shape
          (
              None,
              None,
              [8, 7],
              None,
              None,
              [0.4, 0.5],
              None,
              None,
          ),  # Both roi_end and rel_roi_shape
          (
              None,
              None,
              None,
              [0.5, 0.4],
              [8, 7],
              None,
              None,
              None,
          ),  # Both rel_roi_end and roi_shape
          (
              [-1, 2],
              None,
              None,
              None,
              None,
              None,
              None,
              None,
          ),  # Out of bounds anchor
          (
              None,
              None,
              [100, 8],
              None,
              None,
              None,
              None,
              None,
          ),  # Out of bounds end
          (
              None,
              None,
              None,
              None,
              [100, 8],
              None,
              None,
              None,
          ),  # Out of bounds shape
      ]
  
      for device in ["cpu", "gpu"] if is_gds_supported() else ["cpu"]:
          for roi_params in roi_args:
              fill_value = rng.choice([None, 10.0])
              yield (device,) + roi_params + (fill_value,)
  
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 29 for calling a global function with example usage: _get_roi_error_params() without return types