code: def test_threshold_pruner_with_invalid_inputs() -> None:
      with pytest.raises(TypeError):
          optuna.pruners.ThresholdPruner(lower="val", upper=1.0)  # type: ignore
  
      with pytest.raises(TypeError):
          optuna.pruners.ThresholdPruner(lower=0.0, upper="val")  # type: ignore
  
      with pytest.raises(TypeError):
          optuna.pruners.ThresholdPruner(lower=None, upper=None)
  
file_path: optuna/tests/pruners_tests/test_threshold.py
imports: import pytest
  import optuna
label_desc: Use image node_id 4 for calling a global function with example usage: test_threshold_pruner_with_invalid_inputs() without return types