class_docstr: Simple actor for testing an execution flow.
  
  This actor can fail in these ways:
  
  1. On init if ``actor_init_kill`` is passed as a kwarg
  2. On setup_1() if ``actor_setup_kill`` is passed as a kwarg (RayActorError)
  3. On setup_1() if ``actor_setup_fail`` is passed as a kwarg (RayTaskError)
  4. On train() if ``actor_train_kill`` is passed as a kwarg (RayTaskError)
  5. On train() if ``actor_train_fail`` is passed as a kwarg (RayTaskError)
class_docstr_tok: ["Simple","actor","for","testing","an","execution","flow",".","This","actor","can","fail","in","these","ways",":","1",".","On","init","if","``","actor_init_kill","``","is","passed","as","a","kwarg","2",".","On","setup_1","(",")","if","``","actor_setup_kill","``","is","passed","as","a","kwarg","(","RayActorError",")","3",".","On","setup_1","(",")","if","``","actor_setup_fail","``","is","passed","as","a","kwarg","(","RayTaskError",")","4",".","On","train","(",")","if","``","actor_train_kill","``","is","passed","as","a","kwarg","(","RayTaskError",")","5",".","On","train","(",")","if","``","actor_train_fail","``","is","passed","as","a","kwarg","(","RayTaskError",")"]
code: def train(self, value: float) -> float:
      if value == 4:
          if self.kwargs.get("actor_train_kill"):
              # SystemExit will invoke a RayActorError
              raise SystemExit
  
          if self.kwargs.get("actor_train_fail"):
              # RuntimeError will invoke a RayTaskError
              raise RuntimeError("TASK")
  
      return value
  
imports: import random
  from typing import Any, List, Optional
  import pytest
  import ray
  from ray.air import ResourceRequest
  from ray.air.execution import FixedResourceManager, PlacementGroupResourceManager
  from ray.air.execution._internal import Barrier
  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 5 for calling the Actor obj's underlying member method code with example usage: obj.train(value) and returns: value