code: def test_buffer_from_cuda_iface_dtype(data, dtype):
      data = data.astype(dtype)
      buf = as_buffer(data)
      got = cp.array(buf).reshape(-1).view("uint8")
      expect = data.reshape(-1).view("uint8")
      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 2 for calling a global function with example usage: test_buffer_from_cuda_iface_dtype(data, dtype) without return types