code: def test_buffer_slice(idx):
      ary = cp.arange(arr_len, dtype="uint8")
      buf = as_buffer(ary)
      expect = ary[idx]
      got = cp.array(buf[idx])
      assert (expect == got).all()
  
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 6 for calling a global function with example usage: test_buffer_slice(idx) without return types