class_docstr: A class used for getting runtime context.
docstr: Get a dictionary of the current context.
  
  Returns:
      dict: Dictionary of the current context.
docstr_tok: ["Get","a","dictionary","of","the","current","context",".","Returns",":","dict",":","Dictionary","of","the","current","context","."]
code: def get(self) -> Dict[str, Any]:
      """Get a dictionary of the current context.
  
      Returns:
          dict: Dictionary of the current context.
      """
      context = {
          "job_id": self.job_id,
          "node_id": self.node_id,
          "namespace": self.namespace,
      }
      if self.worker.mode == ray._private.worker.WORKER_MODE:
          if self.task_id is not None:
              context["task_id"] = self.task_id
          if self.actor_id is not None:
              context["actor_id"] = self.actor_id
  
      return context
  
imports: import logging
  from typing import Any, Dict, List, Optional
  import ray._private.worker
  from ray._private.client_mode_hook import client_mode_hook
  from ray._private.utils import pasre_pg_formatted_resources_to_original
  from ray._raylet import TaskID
  from ray.runtime_env import RuntimeEnv
  from ray.util.annotations import Deprecated, PublicAPI
label_desc: Use image node_id 2 for calling the RuntimeContext obj's underlying member method code with example usage: obj.get() and returns: context