code: def test_modin_weight(self):
      kRows = 32
      kCols = 8
  
      X = np.random.randn(kRows, kCols)
      y = np.random.randn(kRows)
      w = np.random.uniform(size=kRows).astype(np.float32)
      w_pd = md.DataFrame(w)
      data = xgb.DMatrix(X, y, w_pd)
  
      assert data.num_row() == kRows
      assert data.num_col() == kCols
  
      np.testing.assert_array_equal(data.get_weight(), w)
  
file_path: xgboost/tests/python/test_with_modin.py
imports: 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 TestModin obj's underlying member method code with example usage: obj.test_modin_weight() without return types