code: def __init__(self, termination_trial_number: int) -> None:
      self._termination_trial_number = termination_trial_number
  
file_path: optuna/tests/terminator_tests/test_callback.py
imports: from optuna.study import create_study
  from optuna.study import Study
  from optuna.terminator import BaseTerminator
  from optuna.terminator import TerminatorCallback
  from optuna.trial import TrialState
label_desc: Use image node_id 1 to create a new _DeterministicTerminator object from inherited base classes: BaseTerminator with example: obj = _DeterministicTerminator(termination_trial_number)