code: def test_buffer_from_cuda_iface_contiguous(data):
      data, expect_success = data
      if expect_success:
          as_buffer(data.view("|u1"))
      else:
          with pytest.raises(ValueError):
              as_buffer(data.view("|u1"))
  
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 1 for calling a global function with example usage: test_buffer_from_cuda_iface_contiguous(data) without return types