code: def test_patient_pruner_with_one_trial() -> None:
      pruner = optuna.pruners.PatientPruner(None, 0)
      study = optuna.study.create_study(pruner=pruner)
      trial = study.ask()
      trial.report(1, 0)
  
      # The pruner is not activated at a first trial.
      assert not trial.should_prune()
  
file_path: optuna/tests/pruners_tests/test_patient.py
imports: from typing import List
  import pytest
  import optuna
label_desc: Use image node_id 4 for calling a global function with example usage: test_patient_pruner_with_one_trial() without return types