code: def test_experimental_class_decorator() -> None:
      version = "1.1.0"
      decorator_experimental = _experimental.experimental_class(version)
      assert callable(decorator_experimental)
  
      decorated_class = decorator_experimental(_Sample)
      assert decorated_class.__name__ == "_Sample"
      assert decorated_class.__init__.__name__ == "__init__"
      assert (
          decorated_class.__doc__
          == _experimental._EXPERIMENTAL_NOTE_TEMPLATE.format(
              ver=version
          )
      )
  
      with pytest.warns(ExperimentalWarning):
          decorated_class("a", "b", "c")
  
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 5 for calling a global function with example usage: test_experimental_class_decorator() without return types