class_docstr: Base class for bandit datasets.
  
  Parameters
  ----------
  n_features
      Number of features in the dataset.
  n_samples
      Number of samples in the dataset.
  n_classes
      Number of classes in the dataset, only applies to classification datasets.
  n_outputs
      Number of outputs the target is made of, only applies to multi-output datasets.
  sparse
      Whether the dataset is sparse or not.
code: def __init__(
      self,
      n_features,
      n_samples=None,
      n_classes=None,
      n_outputs=None,
      sparse=False,
  ):
      super().__init__(
          task="BANDIT",
          n_features=n_features,
          n_samples=n_samples,
          n_classes=n_classes,
          n_outputs=n_outputs,
          sparse=sparse,
      )
  
file_path: river/river/bandit/datasets/base.py
imports: from __future__ import annotations
  import abc
  from river import bandit, datasets
label_desc: Use image node_id 1 to create a new BanditDataset object from inherited base classes: datasets.base with example: obj = BanditDataset(n_features, n_samples, n_classes, n_outputs, sparse)