code: def test_arrow_table_with_label(self):
      df = pd.DataFrame(
          [[1, 2.0, 3.0], [2, 3.0, 4.0]], columns=["a", "b", "c"]
      )
      table = pa.Table.from_pandas(df)
      label = np.array([0, 1])
      dm = xgb.DMatrix(table)
      dm.set_label(label)
      assert dm.num_row() == 2
      assert dm.num_col() == 3
      np.testing.assert_array_equal(dm.get_label(), np.array([0, 1]))
  
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 2 for calling the TestArrowTable obj's underlying member method code with example usage: obj.test_arrow_table_with_label() without return types