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/examples/2_multi_fidelity/2_sgd_datasets.py
imports: from __future__ import annotations
  import itertools
  import warnings
  import numpy
  from ConfigSpace import Categorical, Configuration, ConfigurationSpace, Float
  from sklearn import datasets
  from sklearn.linear_model import SGDClassifier
  from sklearn.model_selection import StratifiedKFold, cross_val_score
  from smac import MultiFidelityFacade
  from smac import Scenario
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