code: def test_result_deprecated():
      r = _Result(10, None)
      with pytest.deprecated_call():
          assert r.result == 10
  
imports: import pytest
  from pluggy.callers import _Result
  from pluggy import PluginManager, HookimplMarker, HookspecMarker
label_desc: Use image node_id 1 for calling a global function with example usage: test_result_deprecated() without return types