code: def test_median_pruner_n_warmup_steps() -> None:
      pruner = optuna.pruners.MedianPruner(0, 1)
      study = optuna.study.create_study(pruner=pruner)
  
      trial = study.ask()
      trial.report(1, 0)
      trial.report(1, 1)
      study.tell(trial, 1)
  
      trial = study.ask()
      trial.report(2, 0)
      # A pruner is not activated during warm-up steps.
      assert not trial.should_prune()
  
      trial.report(2, 1)
      # A pruner is activated after warm-up steps.
      assert trial.should_prune()
  
file_path: optuna/tests/pruners_tests/test_median.py
imports: from typing import List
  from typing import Tuple
  import pytest
  import optuna
label_desc: Use image node_id 5 for calling a global function with example usage: test_median_pruner_n_warmup_steps() without return types