code: def test_buffer_slice_fail(idx, err_type, err_msg):
      ary = cp.arange(arr_len, dtype="uint8")
      buf = as_buffer(ary)
  
      with pytest.raises(err_type, match=err_msg):
          buf[idx]
  
file_path: cudf/python/cudf/cudf/tests/test_buffer.py
imports: import cupy
  import pytest
  from cudf.core.buffer import Buffer, as_buffer
label_desc: Use image node_id 7 for calling a global function with example usage: test_buffer_slice_fail(idx, err_type, err_msg) without return types