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