code: def __init__(
      self, handler, event=None, bump_secs=5.0, min_delay_secs=0.1
  ):
      self.handler = handler
      if event is None:
          event = asyncio.Event()
      self.event = event
      self.bump_secs = bump_secs
      self.min_delay_secs = min_delay_secs
      self.task_manager = aiotools.BackgroundTaskManager()
  
imports: import asyncio
  import base64
  import json
  import logging
  import os
  import random
  from typing import Any, Awaitable, Callable, Dict, List, Optional
  import aiohttp
  import kubernetes_asyncio.client
  import kubernetes_asyncio.client.rest
  import kubernetes_asyncio.config
  from gear import Database, create_session
  from gear.clients import get_identity_client
  from gear.cloud_config import get_gcp_config, get_global_config
  from hailtop import aiotools, httpx
  from hailtop import batch_client
  from hailtop.aiocloud.aioazure import AzureGraphClient
  from hailtop.aiocloud.aiogoogle import GoogleIAmClient
  from hailtop.utils import secret_alnum_string, time_msecs
label_desc: Use image node_id 1 to create a new EventHandler object  with example: obj = EventHandler(handler, event, bump_secs, min_delay_secs)