code: def __init__(self, ip, listen_port):
      self.ip = ip
      self.listen_port = listen_port
      self.http_host = None
      self.http_port = None
      self.http_session = None
      self.runner = None
  
      # Create a http session for all modules.
      # aiohttp<4.0.0 uses a 'loop' variable, aiohttp>=4.0.0 doesn't anymore
      if Version(aiohttp.__version__) < Version("4.0.0"):
          self.http_session = aiohttp.ClientSession(
              loop=get_or_create_event_loop()
          )
      else:
          self.http_session = aiohttp.ClientSession()
  
imports: import logging
  from ray._private.utils import get_or_create_event_loop
  from packaging.version import Version
  import ray.dashboard.optional_utils
  from ray.dashboard.optional_deps import aiohttp, aiohttp_cors, hdrs
label_desc: Use image node_id 1 to create a new HttpServerAgent object  with example: obj = HttpServerAgent(ip, listen_port)