code: def test_calibrate_decision_threshold_out_of_bounds():
      y, y_pred_proba = _get_sample_data()
      with pytest.raises(ValueError):
          calibrate_decision_threshold(
              y=y,
              y_pred_proba=y_pred_proba,
              metric=balanced_accuracy,
              decision_thresholds=[1.0, 0.5, 2.0],
          )
      with pytest.raises(ValueError):
          calibrate_decision_threshold(
              y=y,
              y_pred_proba=y_pred_proba,
              metric=balanced_accuracy,
              decision_thresholds=[-0.01, 0.5],
          )
  
file_path: autogluon/core/tests/unittests/calibrate/test_decision_threshold.py
imports: import numpy
  import pytest
  from autogluon.core.calibrate import calibrate_decision_threshold
  from autogluon.core.metrics import balanced_accuracy, f1, roc_auc
label_desc: Use image node_id 5 for calling a global function with example usage: test_calibrate_decision_threshold_out_of_bounds() without return types