code: def test_dmatrix_feature_weights(self) -> None:
      import cupy as cp
  
      rng = cp.random.RandomState(1994)
      data = rng.randn(5, 5)
      m = xgb.DMatrix(data)
  
      feature_weights = rng.uniform(size=5)
      m.set_info(feature_weights=feature_weights)
  
      cp.testing.assert_array_equal(
          cp.array(m.get_float_info("feature_weights")),
          feature_weights.astype(np.float32),
      )
  
file_path: xgboost/tests/python-gpu/test_device_quantile_dmatrix.py
imports: import sys
  import numpy
  import pytest
  from hypothesis import given, settings, strategies
  import xgboost
  from xgboost import testing
  from xgboost.testing.data import check_inf
  from xgboost.testing.data_iter import run_mixed_sparsity
  import test_quantile_dmatrix
label_desc: Use image node_id 1 for calling the TestQuantileDMatrix obj's underlying member method code with example usage: obj.test_dmatrix_feature_weights() without return types