code: def test_dtypes(self) -> None:
      n_samples = 128
      n_features = 16
      for orig, x in np_dtypes(n_samples, n_features):
          m0 = xgb.DMatrix(orig)
          m1 = xgb.DMatrix(x)
          assert tm.predictor_equal(m0, m1)
  
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 19 for calling the TestDMatrix obj's underlying member method code with example usage: obj.test_dtypes() without return types