class_docstr: Represents the registration information of a hook callback.
docstr: Intitialize `HookHandle`.
  
  Args:
      _id: Id, the callback is stored as in the `Pluggable`.
      events: List of events, the callback is registered for.
      func: The callback function.
      pluggable: The `Pluggable` where the callback is registered.
docstr_tok: ["Intitialize","`","HookHandle","`",".","Args",":","_id",":","Id",",","the","callback","is","stored","as","in","the","`","Pluggable","`",".","events",":","List","of","events",",","the","callback","is","registered","for",".","func",":","The","callback","function",".","pluggable",":","The","`","Pluggable","`","where","the","callback","is","registered","."]
code: def __init__(
      self,
      _id: HookHandleId,
      *,
      events: Sequence[EventIdenifier],
      func: Callable,
      pluggable: Pluggable,
  ) -> None:
      """Intitialize `HookHandle`.
  
      Args:
          _id: Id, the callback is stored as in the `Pluggable`.
          events: List of events, the callback is registered for.
          func: The callback function.
          pluggable: The `Pluggable` where the callback is registered.
      """
      pluggable.validate_event(*events)
  
      self._id = _id
      self._events = events
      self._func = func
      self._pluggable = pluggable
  
imports: import logging
  from collections import defaultdict
  from inspect import isclass, signature
  from itertools import count
  from queue import Queue
  from typing import Any, Callable, Dict, Iterator, List, NewType, Optional, Sequence, Set, Type, Union, cast
label_desc: Use image node_id 1 to create a new HookHandle object  with example: obj = HookHandle(_id)