code: def test_experimental_decorator_name() -> None:
      name = "bar"
      decorator_experimental = _experimental.experimental_func(
          "1.1.0", name=name
      )
      decorated_sample_func = decorator_experimental(_sample_func)
  
      with pytest.warns(ExperimentalWarning) as record:
          decorated_sample_func()
  
      assert isinstance(record.list[0].message, Warning)
      assert name in record.list[0].message.args[0]
  
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 7 for calling a global function with example usage: test_experimental_decorator_name() without return types