class_docstr: A context used to describe the created runtime env.
code: def __init__(
      self,
      command_prefix: List[str] = None,
      env_vars: Dict[str, str] = None,
      py_executable: Optional[str] = None,
      resources_dir: Optional[str] = None,
      container: Dict[str, Any] = None,
      java_jars: List[str] = None,
  ):
      self.command_prefix = command_prefix or []
      self.env_vars = env_vars or {}
      self.py_executable = py_executable or sys.executable
      # TODO(edoakes): this should not be in the context but just passed to
      # the per-resource manager constructor. However, it's currently used in
      # the legacy Ray client codepath to pass the resources dir to the shim
      # process. We should remove it once Ray client uses the agent.
      self.resources_dir: str = resources_dir
      self.container = container or {}
      self.java_jars = java_jars or []
  
file_path: ray/python/ray/_private/runtime_env/context.py
imports: import json
  import logging
  import os
  import subprocess
  import shlex
  import sys
  from typing import Any, Dict, List, Optional
  from ray.util.annotations import DeveloperAPI
  from ray.core.generated.common_pb2 import Language
  from ray._private.services import get_ray_jars_dir
  from ray._private.utils import update_envs
label_desc: Use image node_id 1 to create a new RuntimeEnvContext object  with example: obj = RuntimeEnvContext(command_prefix, env_vars, py_executable, resources_dir, container, java_jars)