code: def test_register_historic(pm):
      class Hooks(object):
          @hookspec(historic=True)
          def he_method1(self, arg):
              pass
  
      pm.add_hookspecs(Hooks)
  
      pm.hook.he_method1.call_historic(kwargs=dict(arg=1))
      out = []
  
      class Plugin(object):
          @hookimpl
          def he_method1(self, arg):
              out.append(arg)
  
      pm.register(Plugin())
      assert out == [1]
  
      class Plugin2(object):
          @hookimpl
          def he_method1(self, arg):
              out.append(arg * 10)
  
      pm.register(Plugin2())
      assert out == [1, 10]
      pm.hook.he_method1.call_historic(kwargs=dict(arg=12))
      assert out == [1, 10, 120, 12]
  
imports: import pytest
  import types
  from pluggy import PluginManager, PluginValidationError, HookCallError, HookimplMarker, HookspecMarker
  from pluggy.manager import importlib_metadata
label_desc: Use image node_id 11 for calling a global function with example usage: test_register_historic(pm) without return types