code: def test_hyperband_max_resource_value_error() -> None:
      with pytest.raises(ValueError):
          _ = optuna.pruners.HyperbandPruner(
              max_resource="not_appropriate"
          )
  
file_path: optuna/tests/pruners_tests/test_hyperband.py
imports: from typing import Callable
  from unittest import mock
  import numpy
  import pytest
  import optuna
label_desc: Use image node_id 4 for calling a global function with example usage: test_hyperband_max_resource_value_error() without return types