code: def get_trajectory(
      self, sort_by: str = "trials"
  ) -> tuple[list[float], list[float]]:
      if len(self.task.objectives) > 1:
          raise NotSupportedError
  
      assert self._smac is not None
      trajectory = self._smac.trajectory
      X: list[int | float] = []
      Y: list[float] = []
  
      for cost, _, _, trial, _, walltime, _ in trajectory:
          if cost > 1e6:
              continue
  
          if sort_by == "trials":
              X.append(trial)
          elif sort_by == "walltime":
              X.append(walltime)
          else:
              raise RuntimeError("Unknown sort_by.")
  
          Y.append(cost)
  
      return X, Y
  
file_path: SMAC3/benchmark/src/wrappers/v14.py
imports: from __future__ import annotations
  from typing import Any
  from src.tasks.task import Task
  from src.utils.exceptions import NotSupportedError
  from src.wrappers.wrapper import Wrapper
label_desc: Use image node_id 3 for calling the Version14 obj's underlying member method code with example usage: obj.get_trajectory(sort_by) and returns: X,  Y