docstr: Retrieve data from the passed instance.
docstr_tok: ["Retrieve","data","from","the","passed","instance","."]
code: def get_instance_data(
      self, instance: str
  ) -> tuple[np.ndarray, np.ndarray]:
      """Retrieve data from the passed instance."""
      # We split the dataset into two classes
      classA, classB = instance.split("-")
      indices = np.where(
          np.logical_or(
              int(classA) == self.data.target,
              int(classB) == self.data.target,
          )
      )
  
      data = self.data.data[indices]
      target = self.data.target[indices]
  
      return data, target
  
file_path: SMAC3/benchmark/src/datasets/digits.py
imports: from __future__ import annotations
  import itertools
  import numpy
  from sklearn import datasets
  from src.datasets.dataset import Dataset
label_desc: Use image node_id 4 for calling the DigitsDataset obj's underlying member method code with example usage: obj.get_instance_data(instance) and returns: data,  target