docstr: Test synchronous remote calls to only healthy actors.
docstr_tok: ["Test","synchronous","remote","calls","to","only","healthy","actors","."]
code: def test_sync_call_healthy_only(self):
      """Test synchronous remote calls to only healthy actors."""
      actors = [Actor.remote(i) for i in range(4)]
      manager = FaultTolerantActorManager(actors=actors)
  
      results = []
      for _ in range(10):
          results.extend(
              manager.foreach_actor(lambda w: w.call()).ignore_errors()
          )
          # Wait for actors to recover.
          wait_for_restore()
  
      # Notice that since we only fire calls against healthy actors,
      # we wouldn't be aware that the actors have been recovered.
      # So once an actor is taken out of the lineup (10% chance),
      # it will not go back in, and we should have few results here.
      # Basically takes us 7 calls to kill all the actors.
      # Note that we can hardcode 10 here because we are using deterministic
      # sequences of random numbers.
      self.assertEqual(len(results), 7)
  
      manager.clear()
  
imports: import functools
  import os
  from pathlib import Path
  import pickle
  import sys
  import time
  import unittest
  import ray
  from ray.util.state import list_actors
  from ray.rllib.utils.actor_manager import FaultAwareApply, FaultTolerantActorManager
label_desc: Use image node_id 3 for calling the TestActorManager obj's underlying member method code with example usage: obj.test_sync_call_healthy_only() without return types