code: def test_arrow_table(self):
      df = pd.DataFrame(
          [[0, 1, 2.0, 3.0], [1, 2, 3.0, 4.0]],
          columns=["a", "b", "c", "d"],
      )
      table = pa.Table.from_pandas(df)
      dm = xgb.DMatrix(table)
      assert dm.num_row() == 2
      assert dm.num_col() == 4
  
file_path: xgboost/tests/python/test_with_arrow.py
imports: import os
  import sys
  import numpy
  import pytest
  import xgboost
  from xgboost import testing
  from xgboost.core import DataSplitMode
label_desc: Use image node_id 1 for calling the TestArrowTable obj's underlying member method code with example usage: obj.test_arrow_table() without return types