class_docstr: Tests for constructing DMatrix from data structure conforming Apache
  Arrow specification.
class_docstr_tok: ["Tests","for","constructing","DMatrix","from","data","structure","conforming","Apache","Arrow","specification","."]
code: def test_cupy_training_device_dmat(self):
      _test_cupy_training(xgb.QuantileDMatrix)
  
imports: import json
  import numpy
  import pytest
  import xgboost
  from xgboost import testing
  from xgboost.testing.data import run_base_margin_info
label_desc: Use image node_id 3 for calling the TestFromCupy obj's underlying member method code with example usage: obj.test_cupy_training_device_dmat() without return types