code: def test_deprecation_decorator_default_removed_version() -> None:
      deprecated_version = "1.1.0"
      removed_version = "3.0.0"
      decorator_deprecation = _deprecated.deprecated_func(
          deprecated_version, removed_version
      )
      assert callable(decorator_deprecation)
  
      def _func() -> int:
          return 10
  
      decorated_func = decorator_deprecation(_func)
      assert decorated_func.__name__ == _func.__name__
      assert (
          decorated_func.__doc__
          == _deprecated._DEPRECATION_NOTE_TEMPLATE.format(
              d_ver=deprecated_version, r_ver=removed_version
          )
      )
  
      with pytest.warns(FutureWarning):
          decorated_func()
  
file_path: optuna/tests/test_deprecated.py
imports: from typing import Any
  from typing import Optional
  import pytest
  from optuna import _deprecated
label_desc: Use image node_id 9 for calling a global function with example usage: test_deprecation_decorator_default_removed_version() and returns: int