code: def test_experimental_func_decorator() -> None:
      version = "1.1.0"
      decorator_experimental = _experimental.experimental_func(version)
      assert callable(decorator_experimental)
  
      decorated_func = decorator_experimental(_sample_func)
      assert decorated_func.__name__ == _sample_func.__name__
      assert (
          decorated_func.__doc__
          == _experimental._EXPERIMENTAL_NOTE_TEMPLATE.format(
              ver=version
          )
      )
  
      with pytest.warns(ExperimentalWarning):
          decorated_func()
  
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 3 for calling a global function with example usage: test_experimental_func_decorator() without return types