code: def debounce(wait):
      def decorator(fn):
          timer = None
  
          def debounced(*args, **kwargs):
              nonlocal timer
  
              def call_it():
                  fn(*args, **kwargs)
  
              if timer is not None:
                  timer.cancel()
              timer = Timer(wait, call_it)
  
          return debounced
  
      return decorator
  
imports: import asyncio
label_desc: Use image node_id 1 for calling a global function with example usage: debounce(wait) and returns: decorator, debounced