code: def add_handler_event_name(method: Callable, event_name: str):
      event_names = getattr(method, "_handled_events_set_", set())
      event_names.add(event_name)
      setattr(method, "_handled_events_set_", event_names)
  
imports: import inspect
  from typing import Callable, Set
label_desc: Use image node_id 3 for calling a global function with example usage: add_handler_event_name(method, event_name) without return types