code: def test_threshold_pruner_with_lt() -> None:
      pruner = optuna.pruners.ThresholdPruner(
          lower=2.0, n_warmup_steps=0, interval_steps=1
      )
      study = optuna.study.create_study(pruner=pruner)
      trial = study.ask()
  
      trial.report(3.0, 1)
      assert not trial.should_prune()
  
      trial.report(1.0, 2)
      assert trial.should_prune()
  
file_path: optuna/tests/pruners_tests/test_threshold.py
imports: import pytest
  import optuna
label_desc: Use image node_id 2 for calling a global function with example usage: test_threshold_pruner_with_lt() without return types