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 = self.data["instance"].to_list()
  
      if n is not None:
          instances = instances[:n]
  
      return instances
  
file_path: SMAC3/benchmark/src/datasets/ac_branin.py
imports: from __future__ import annotations
  import pandas
  from pathlib import Path
  from src.datasets.dataset import Dataset
label_desc: Use image node_id 2 for calling the ACBraninDataset obj's underlying member method code with example usage: obj.get_instances(n) and returns: instances