class_docstr: Iterator for creating Quantile DMatrix from partitions.
code: def __init__(
      self,
      data: Dict[str, List],
      device_id: Optional[int],
      **kwargs: Any,
  ) -> None:
      self._iter = 0
      self._device_id = device_id
      self._data = data
      self._kwargs = kwargs
  
      super().__init__()
  
imports: from collections import defaultdict, namedtuple
  from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Tuple, Union
  import numpy
  import pandas
  from scipy.sparse import csr_matrix
  from xgboost import DataIter, DMatrix, QuantileDMatrix, XGBModel
  from xgboost.compat import concat
  from .._typing import ArrayLike
  from .utils import get_logger
label_desc: Use image node_id 1 to create a new PartIter object from inherited base classes: DataIter with example: obj = PartIter(data, device_id)