code: def laser_hook(self, hook_type: str) -> Callable:
          
  
          def hook_decorator(func: Callable):
              """ Hook decorator generated by laser_hook
  
              :param func: Decorated function
              """
              self.register_laser_hooks(hook_type, func)
              return func
  
          return hook_decorator
docs: Registers the annotated function with register_laser_hooks
  
          :param hook_type:
          :return: hook decorator