code: def __init__(
      self,
      n_workers=-1,
      **config,
  ):
      super().__init__(n_workers=n_workers)
      self.initialized = False
      if not HAS_RAY:
          raise ImportError(
              "Ray must be installed to use Ray executor."
          )
      self.config = config
  
      if not ray.is_initialized():
          ray.init(**self.config)
          self.initialized = True
          logger.debug(
              "Ray was initiated with runtime_env : %s", **config
          )
  
imports: import logging
  import traceback
  from orion.core.utils.module_import import ImportOptional
  from orion.executor.base import AsyncException, AsyncResult, BaseExecutor, ExecutorClosed, Future
label_desc: Use image node_id 1 to create a new Ray object from inherited base classes: BaseExecutor with example: obj = Ray(n_workers)