code: def __init__(
      self,
      env_setup: DictConfig,
      ray: RayAWSConf,
      stop_cluster: bool,
      sync_up: RsyncConf,
      sync_down: RsyncConf,
      logging: RayLoggingConf,
      create_update_cluster: RayCreateOrUpdateClusterConf,
      teardown_cluster: RayTeardownClusterConf,
  ) -> None:
      self.ray_cfg = ray
      self.stop_cluster = stop_cluster
      self.sync_up = sync_up
      self.sync_down = sync_down
      self.logging = logging
      self.create_update_cluster = create_update_cluster
      self.teardown_cluster = teardown_cluster
      self.config: Optional[DictConfig] = None
      self.hydra_context: Optional[HydraContext] = None
      self.task_function: Optional[TaskFunction] = None
      self.ray_yaml_path: Optional[str] = None
      self.env_setup = env_setup
  
file_path: hydra/plugins/hydra_ray_launcher/hydra_plugins/hydra_ray_launcher/ray_aws_launcher.py
imports: import logging
  from typing import Optional, Sequence
  from hydra.core.utils import JobReturn
  from hydra.plugins.launcher import Launcher
  from hydra.types import HydraContext, TaskFunction
  from omegaconf import DictConfig
  from ._config import RayAWSConf, RayCreateOrUpdateClusterConf, RayLoggingConf, RayTeardownClusterConf, RsyncConf
label_desc: Use image node_id 1 to create a new RayAWSLauncher object from inherited base classes: Launcher with example: obj = RayAWSLauncher(env_setup, ray, stop_cluster, sync_up, sync_down, logging, create_update_cluster, teardown_cluster)