code: def test_experimental_raises_error_for_invalid_version(
      version: Any,
  ) -> None:
      with pytest.raises(ValueError):
          _experimental.experimental_func(version)
  
      with pytest.raises(ValueError):
          _experimental.experimental_class(version)
  
file_path: optuna/tests/test_experimental.py
imports: from typing import Any
  import pytest
  from optuna import _experimental
  from optuna.exceptions import ExperimentalWarning
label_desc: Use image node_id 2 for calling a global function with example usage: test_experimental_raises_error_for_invalid_version(version) without return types