code: def test_create_table_with_device_buffers():
      # ARROW-11872: make sure that we can create an Arrow Table from
      # GPU-located Arrays without crashing.
      hbuf, htable, dbuf, dtable = make_table_cuda()
      # Construct a new Table from the device Table
      dtable2 = pa.Table.from_arrays(
          dtable.columns, dtable.column_names
      )
      # Assert basic fields the same between host and device tables
      assert htable.schema == dtable2.schema
      assert htable.num_rows == dtable2.num_rows
      assert htable.num_columns == dtable2.num_columns
      # Assert byte-level equality
      assert hbuf.equals(dbuf.copy_to_host())
      # Copy DtoH and assert the tables are still equivalent
      assert htable.equals(
          pa.ipc.open_stream(dbuf.copy_to_host()).read_all()
      )
  
imports: import sys
  import sysconfig
  import pytest
  import pyarrow
  import numpy
label_desc: Use image node_id 25 for calling a global function with example usage: test_create_table_with_device_buffers() without return types