code: def test_successive_halving_pruner_bootstrap_parameter() -> None:
      with pytest.raises(ValueError):
          optuna.pruners.SuccessiveHalvingPruner(bootstrap_count=-1)
  
      with pytest.raises(ValueError):
          optuna.pruners.SuccessiveHalvingPruner(
              bootstrap_count=1, min_resource="auto"
          )
  
      pruner = optuna.pruners.SuccessiveHalvingPruner(
          min_resource=1, reduction_factor=2, bootstrap_count=1
      )
      study = optuna.study.create_study(pruner=pruner)
  
      trial1 = study.ask()
      trial2 = study.ask()
  
      trial1.report(1, step=1)
      assert trial1.should_prune()
  
      trial2.report(1, step=1)
      assert not trial2.should_prune()
  
file_path: optuna/tests/pruners_tests/test_successive_halving.py
imports: from typing import Tuple
  import pytest
  import optuna
label_desc: Use image node_id 10 for calling a global function with example usage: test_successive_halving_pruner_bootstrap_parameter() without return types