class_docstr: A class used for getting runtime context.
docstr: Get the current actor ID in this worker.
  
  ID of the actor of the current process.
  This shouldn't be used in a driver process.
  
  Returns:
      The current actor id in this worker. None if there's no actor id.
docstr_tok: ["Get","the","current","actor","ID","in","this","worker",".","ID","of","the","actor","of","the","current","process",".","This","should","n't","be","used","in","a","driver","process",".","Returns",":","The","current","actor","id","in","this","worker",".","None","if","there","'s","no","actor","id","."]
code: def actor_id(self):
      """Get the current actor ID in this worker.
  
      ID of the actor of the current process.
      This shouldn't be used in a driver process.
  
      Returns:
          The current actor id in this worker. None if there's no actor id.
      """
      # only worker mode has actor_id
      assert (
          self.worker.mode == ray._private.worker.WORKER_MODE
      ), f"This method is only available when the process is a\
                   worker. Current mode: {self.worker.mode}"
      actor_id = self.worker.actor_id
      return actor_id if not actor_id.is_nil() else None
  
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 11 for calling the RuntimeContext obj's underlying member method code with example usage: obj.actor_id() and returns: unknown