code: def __init__(self, dashboard_head):
      super().__init__(dashboard_head)
      self._gcs_job_info_stub = None
      self._gcs_actor_info_stub = None
      self._dashboard_head = dashboard_head
      self._gcs_aio_client = dashboard_head.gcs_aio_client
      self._job_info_client = None
      # For offloading CPU intensive work.
      self._thread_pool = concurrent.futures.ThreadPoolExecutor(
          max_workers=2, thread_name_prefix="api_head"
      )
  
imports: import concurrent.futures
  from datetime import datetime
  import enum
  import logging
  import json
  import os
  from typing import Optional
  import aiohttp.web
  from ray.dashboard.consts import RAY_CLUSTER_ACTIVITY_HOOK
  import ray.dashboard.optional_utils
  import ray.dashboard.utils
  from ray._private.storage import _load_class
  from ray.core.generated import gcs_service_pb2, gcs_service_pb2_grpc
  from ray.dashboard.modules.job.common import JobInfoStorageClient
  from ray._private.pydantic_compat import BaseModel, Extra, Field, validator
label_desc: Use image node_id 1 to create a new APIHead object from inherited base classes: dashboard_utils with example: obj = APIHead(dashboard_head)