code: def test_roi_random_crop_error_incompatible_args():
      in_shape = np.array([4, 4])
      crop_shape = np.array([2, 2])
      roi_start = np.array([1, 1])
      roi_shape = np.array([1, 1])
      roi_end = np.array([2, 2])
      yield (
          check_roi_random_crop_error,
          np.zeros(in_shape),
          in_shape,
          crop_shape,
          roi_start,
          roi_shape,
          None,
          "``in_shape`` argument is incompatible with providing an input.",
      )
      yield (
          check_roi_random_crop_error,
          np.zeros(in_shape),
          None,
          crop_shape,
          roi_start,
          roi_shape,
          roi_end,
          "Either ROI end or ROI shape should be defined, but not both",
      )
  
file_path: DALI/dali/test/python/operator_2/test_roi_random_crop.py
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.types
  import random
  from nose_utils import assert_raises
label_desc: Use image node_id 6 for calling a global function with example usage: test_roi_random_crop_error_incompatible_args() without return types