code: def setUp(self):
      # Simulate a cluster on one machine.
      self.cluster = Cluster()
  
      for i in range(num_nodes):
          self.cluster.add_node(
              redis_port=6379 if i == 0 else None,
              num_redis_shards=num_redis_shards if i == 0 else None,
              num_cpus=2,
              num_gpus=0,
              object_store_memory=object_store_memory,
              redis_max_memory=redis_max_memory,
              dashboard_host="0.0.0.0",
          )
      self.cluster.wait_for_nodes()
      ray.init(address=self.cluster.address)
  
file_path: ray/rllib/tests/test_node_failure.py
imports: import time
  import unittest
  import ray
  from ray._private.test_utils import get_other_nodes
  from ray.cluster_utils import Cluster
  from ray.util.state import list_actors
  from ray.rllib.algorithms.ppo import PPO, PPOConfig
label_desc: Use image node_id 1 for calling the NodeFailureTests obj's underlying member method code with example usage: obj.setUp() without return types