code: def test_roi_random_crop_error_wrong_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])
      # Negative shape
      yield (
          check_roi_random_crop_error,
          None,
          np.array([-4, 4]),
          crop_shape,
          roi_start,
          roi_shape,
          None,
          "Input shape can't be negative.",
      )
      yield (
          check_roi_random_crop_error,
          None,
          in_shape,
          np.array([1, -1]),
          roi_start,
          roi_shape,
          None,
          "Crop shape can't be negative",
      )
      # Out of bounds ROI
      yield (
          check_roi_random_crop_error,
          None,
          in_shape,
          crop_shape,
          np.array([-1, -1]),
          roi_shape,
          None,
          "ROI can't be out of bounds.",
      )
      yield (
          check_roi_random_crop_error,
          None,
          in_shape,
          crop_shape,
          roi_start,
          np.array([4, 4]),
          None,
          "ROI can't be out of bounds.",
      )
      yield (
          check_roi_random_crop_error,
          None,
          in_shape,
          crop_shape,
          roi_start,
          None,
          np.array([5, 5]),
          "ROI can't be out of bounds.",
      )
      # Out of bounds crop
      yield (
          check_roi_random_crop_error,
          None,
          in_shape,
          np.array([10, 10]),
          roi_start,
          roi_shape,
          None,
          "Cropping shape can't be bigger than the input shape.",
      )
  
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 7 for calling a global function with example usage: test_roi_random_crop_error_wrong_args() without return types