docstr: Create instances from the dataset which include two classes only.
docstr_tok: ["Create","instances","from","the","dataset","which","include","two","classes","only","."]
code: def get_instances(self, n: int | None = None) -> list[str]:
      """Create instances from the dataset which include two classes only."""
      instances = [
          f"{classA}-{classB}"
          for classA, classB in itertools.combinations(
              self.data.target_names, 2
          )
      ]
  
      if n is not None:
          instances = instances[:n]
  
      return instances
  
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 2 for calling the DigitsDataset obj's underlying member method code with example usage: obj.get_instances(n) and returns: instances