class_docstr: A class used for getting runtime context.
docstr: Get current worker ID for this worker or driver process.
  
  Returns:
      A worker id in hex format for this worker or driver process.
docstr_tok: ["Get","current","worker","ID","for","this","worker","or","driver","process",".","Returns",":","A","worker","id","in","hex","format","for","this","worker","or","driver","process","."]
code: def get_worker_id(self) -> str:
      """Get current worker ID for this worker or driver process.
  
      Returns:
          A worker id in hex format for this worker or driver process.
      """
      assert (
          ray.is_initialized()
      ), "Worker ID is not available because Ray has not been initialized."
      return self.worker.worker_id.hex()
  
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 7 for calling the RuntimeContext obj's underlying member method code with example usage: obj.get_worker_id() and returns: self