class_docstr: Decorator for marking functions as hook implementations.
  
  Instantiate it with a ``project_name`` to get a decorator.
  Calling :meth:`PluginManager.register` later will discover all marked
  functions if the :class:`PluginManager` uses the same project name.
class_docstr_tok: ["Decorator","for","marking","functions","as","hook","implementations",".","Instantiate","it","with","a","``","project_name","``","to","get","a","decorator",".","Calling",":","meth",":","`","PluginManager.register","`","later","will","discover","all","marked","functions","if","the",":","class",":","`","PluginManager","`","uses","the","same","project","name","."]
code: def __call__(
      self,
      function: _F,
      hookwrapper: bool = ...,
      optionalhook: bool = ...,
      tryfirst: bool = ...,
      trylast: bool = ...,
      specname: str | None = ...,
      wrapper: bool = ...,
  ) -> _F:
      ...
  
imports: from __future__ import annotations
  import inspect
  import sys
  import warnings
  from types import ModuleType
  from typing import AbstractSet
  from typing import Any
  from typing import Callable
  from typing import Final
  from typing import final
  from typing import Generator
  from typing import List
  from typing import Mapping
  from typing import Optional
  from typing import overload
  from typing import Sequence
  from typing import Tuple
  from typing import TYPE_CHECKING
  from typing import TypedDict
  from typing import TypeVar
  from typing import Union
  from ._result import Result
label_desc: Use image node_id 2 for calling the HookimplMarker obj's underlying member method code with example usage: obj.__call__(function, hookwrapper, optionalhook, tryfirst, trylast, specname, wrapper) without return types