code: def test_get_info(self):
      dtrain, _ = tm.load_agaricus(__file__)
      dtrain.get_float_info("label")
      dtrain.get_float_info("weight")
      dtrain.get_float_info("base_margin")
      dtrain.get_uint_info("group_ptr")
  
      group_len = np.array([2, 3, 4])
      dtrain.set_group(group_len)
      np.testing.assert_equal(group_len, dtrain.get_group())
  
imports: import csv
  import os
  import tempfile
  import warnings
  import numpy
  import pytest
  import scipy.sparse
  from hypothesis import given, settings, strategies
  from scipy.sparse import csr_matrix, rand
  import xgboost
  from xgboost import testing
  from xgboost.core import DataSplitMode
  from xgboost.testing.data import np_dtypes, run_base_margin_info
label_desc: Use image node_id 8 for calling the TestDMatrix obj's underlying member method code with example usage: obj.test_get_info() without return types