class_docstr: Simple actor for testing an execution flow.
  
  This actor can fail in three ways:
  
  1. On init if ``actor_error_init`` is passed as a kwarg
  2. On run() if ``actor_error_task`` is passed as a kwarg (RayActorError)
  3. On run() if ``task_error`` is passed as a kwarg (RayTaskError)
class_docstr_tok: ["Simple","actor","for","testing","an","execution","flow",".","This","actor","can","fail","in","three","ways",":","1",".","On","init","if","``","actor_error_init","``","is","passed","as","a","kwarg","2",".","On","run","(",")","if","``","actor_error_task","``","is","passed","as","a","kwarg","(","RayActorError",")","3",".","On","run","(",")","if","``","task_error","``","is","passed","as","a","kwarg","(","RayTaskError",")"]
code: def __init__(self, **kwargs):
      self.kwargs = kwargs
  
      if self.kwargs.get("actor_error_init"):
          raise RuntimeError("INIT")
  
imports: import random
  from collections import defaultdict
  from typing import Dict, List, Optional
  import pytest
  import ray
  from ray.air import ResourceRequest
  from ray.air.execution import FixedResourceManager, PlacementGroupResourceManager
  from ray.air.execution._internal.actor_manager import RayActorManager
  from ray.air.execution._internal.tracked_actor import TrackedActor
  from ray.exceptions import RayActorError
label_desc: Use image node_id 1 to create a new Actor object  with example: obj = Actor()