class_docstr: Test preemptions during strategy init.
code: def setUp(self):
      super().setUp()
      self.num_workers = 2
      self.num_ps = 2
      self._cluster = (
          multi_worker_test_base.create_multi_process_cluster(
              num_workers=self.num_workers,
              num_ps=self.num_ps,
              rpc_layer="grpc",
              stream_output=True,
          )
      )
      self._cluster_def = (
          self._cluster.cluster_resolver.cluster_spec().as_dict()
      )
      self._cluster_def["chief"] = [
          "localhost:%d" % multi_worker_test_base.pick_unused_port()
      ]
      self._cluster_resolver = SimpleClusterResolver(
          server_lib.ClusterSpec(self._cluster_def), rpc_layer="grpc"
      )
  
      self.thread_coord = thread_coordinator.Coordinator(
          clean_stop_exception_types=[]
      )
  
imports: import threading
  import time
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.distribute import multi_process_runner
  from tensorflow.python.distribute import multi_worker_test_base
  from tensorflow.python.distribute import parameter_server_strategy_v2
  from tensorflow.python.distribute.cluster_resolver.cluster_resolver import SimpleClusterResolver
  from tensorflow.python.distribute.coordinator import cluster_coordinator
  from tensorflow.python.distribute.coordinator import fault_tolerance_test_base
  from tensorflow.python.eager import test
  from tensorflow.python.training import coordinator
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 1 for calling the InitFaultToleranceTest obj's underlying member method code with example usage: obj.setUp() without return types