code: def test_experimental_instance_method_decorator() -> None:
      version = "1.1.0"
      decorator_experimental = _experimental.experimental_func(version)
      assert callable(decorator_experimental)
  
      decorated_method = decorator_experimental(_Sample._method)
      assert decorated_method.__name__ == _Sample._method.__name__
      assert (
          decorated_method.__doc__ == _Sample._method_expected.__doc__
      )
  
      with pytest.warns(ExperimentalWarning):
          decorated_method(None)
  
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 4 for calling a global function with example usage: test_experimental_instance_method_decorator() without return types