def METHOD_NAME(self) -> list[str]:
    """Create instances from the dataset which include two classes only."""
    return [f"{classA}-{classB}" for classA, classB in itertools.combinations(self._data.target_names, 2)]