code: def _get_competing_values(
      trials: List["optuna.trial.FrozenTrial"],
      value: float,
      rung_key: str,
  ) -> List[float]:
      competing_values = [
          t.system_attrs[rung_key]
          for t in trials
          if rung_key in t.system_attrs
      ]
      competing_values.append(value)
      return competing_values
  
file_path: optuna/optuna/pruners/_successive_halving.py
imports: import math
  from typing import List
  from typing import Optional
  from typing import Union
  import optuna
  from optuna.pruners._base import BasePruner
  from optuna.study._study_direction import StudyDirection
  from optuna.trial._state import TrialState
label_desc: Use image node_id 4 for calling a global function with example usage: _get_competing_values(trials, value, rung_key) and returns: competing_values