class_docstr: A class used for getting runtime context.
docstr: Get current node ID for this worker or driver.
  
  Node ID is the id of a node that your driver, task, or actor runs.
  
  Returns:
      A node id for this worker or driver.
docstr_tok: ["Get","current","node","ID","for","this","worker","or","driver",".","Node","ID","is","the","id","of","a","node","that","your","driver",",","task",",","or","actor","runs",".","Returns",":","A","node","id","for","this","worker","or","driver","."]
code: def node_id(self):
      """Get current node ID for this worker or driver.
  
      Node ID is the id of a node that your driver, task, or actor runs.
  
      Returns:
          A node id for this worker or driver.
      """
      node_id = self.worker.current_node_id
      assert not node_id.is_nil()
      return node_id
  
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 5 for calling the RuntimeContext obj's underlying member method code with example usage: obj.node_id() and returns: node_id