code: def test_deprecated_replaced(self):
      with pytest.deprecated_call(
          match="Parameter `deprecated_param` is deprecated, use `new_param` instead. We'll end support of it in "
          "next major release."
      ):
          value = fun_with_deprecated_param(deprecated_param=42)
          assert value == 42
  
file_path: neptune-client/tests/unit/neptune/new/internal/utils/test_deprecation.py
imports: from unittest.mock import ANY, patch
  import pytest
  from neptune.common.warnings import NeptuneDeprecationWarning, warn_once
  from neptune.exceptions import NeptuneParametersCollision
  from neptune.internal.utils.deprecation import deprecated, deprecated_parameter
label_desc: Use image node_id 2 for calling the TestDeprecatedParameter obj's underlying member method code with example usage: obj.test_deprecated_replaced() without return types