code: def test_not_all_arguments_are_provided_issues_a_warning(
      pm: PluginManager,
  ) -> None:
      """Calling a hook without providing all arguments specified in
      the hook spec issues a warning."""
  
      class Spec:
          @hookspec
          def hello(self, arg1, arg2):
              pass
  
          @hookspec(historic=True)
          def herstory(self, arg1, arg2):
              pass
  
      pm.add_hookspecs(Spec)
  
      with pytest.warns(
          UserWarning, match=r"'arg1', 'arg2'.*cannot be found.*$"
      ):
          pm.hook.hello()
      with pytest.warns(
          UserWarning, match=r"'arg2'.*cannot be found.*$"
      ):
          pm.hook.hello(arg1=1)
      with pytest.warns(
          UserWarning, match=r"'arg1'.*cannot be found.*$"
      ):
          pm.hook.hello(arg2=2)
  
      with pytest.warns(
          UserWarning, match=r"'arg1', 'arg2'.*cannot be found.*$"
      ):
          pm.hook.hello.call_extra([], kwargs=dict())
  
      with pytest.warns(
          UserWarning, match=r"'arg1', 'arg2'.*cannot be found.*$"
      ):
          pm.hook.herstory.call_historic(kwargs=dict())
  
file_path: catboost/contrib/python/pluggy/py3/tests/test_details.py
imports: import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
label_desc: Use image node_id 4 for calling a global function with example usage: test_not_all_arguments_are_provided_issues_a_warning(pm) without return types