code: def test_opt_in_args(pm: PluginManager) -> None:
      """Verify that two hookimpls with mutex args can serve
      under the same spec.
      """
  
      class Api:
          @hookspec
          def hello(self, arg1, arg2, common_arg):
              "api hook 1"
  
      class Plugin1:
          @hookimpl
          def hello(self, arg1, common_arg):
              return arg1 + common_arg
  
      class Plugin2:
          @hookimpl
          def hello(self, arg2, common_arg):
              return arg2 + common_arg
  
      pm.add_hookspecs(Api)
      pm.register(Plugin1())
      pm.register(Plugin2())
  
      results = pm.hook.hello(arg1=1, arg2=2, common_arg=0)
      assert results == [2, 1]
  
file_path: catboost/contrib/python/pluggy/py3/tests/test_invocations.py
imports: from typing import Iterator
  import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
  from pluggy import PluginValidationError
label_desc: Use image node_id 3 for calling a global function with example usage: test_opt_in_args(pm) and returns: unknown, unknown