code: def test_hook_and_wrappers_speed(benchmark, hooks, wrappers):
      def setup():
          hook_name = "foo"
          hook_impls = []
          for method in hooks + wrappers:
              f = HookImpl(None, "<temp>", method, method.example_impl)
              hook_impls.append(f)
          caller_kwargs = {"arg1": 1, "arg2": 2, "arg3": 3}
          firstresult = False
          return (hook_name, hook_impls, caller_kwargs, firstresult), {}
  
      benchmark.pedantic(_multicall, setup=setup, rounds=10)
  
file_path: catboost/contrib/python/pluggy/py3/tests/benchmark.py
imports: import pytest
  from pluggy import HookimplMarker
  from pluggy import HookspecMarker
  from pluggy import PluginManager
  from pluggy._callers import _multicall
  from pluggy._hooks import HookImpl
label_desc: Use image node_id 5 for calling a global function with example usage: test_hook_and_wrappers_speed(benchmark, hooks, wrappers) and returns: hook_name,  hook_impls,  caller_kwargs,  firstresult,  dict