code: def test_warn_once(self, warn):
      warn_once(message="Deprecation message 1")
      warn_once(message="Deprecation message 1")
  
      warn.assert_called_once_with(
          message="Deprecation message 1",
          category=NeptuneDeprecationWarning,
          stacklevel=ANY,
      )
  
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 7 for calling the TestDeprecatedParameter obj's underlying member method code with example usage: obj.test_warn_once(warn) without return types