code: def benchmarkCreateLocalCluster(self):
      deltas = []
      iters = 5
      for _ in range(iters):
          start_time = time.time()
          test.create_local_cluster(num_workers=1, num_ps=10)
          end_time = time.time()
          deltas.append(end_time - start_time)
  
      median_deltas = np.median(deltas)
      print(
          "\n\nbenchmark_create_local_cluster_1_worker_10_ps.  "
          "iterations: %d, median wall time: %g\n\n"
          % (iters, median_deltas)
      )
      self.report_benchmark(
          iters=iters,
          wall_time=median_deltas,
          name="benchmark_create_local_cluster_1_worker_10_ps",
      )
  
file_path: tensorflow-upstream/tensorflow/python/training/localhost_cluster_performance_test.py
imports: import time
  import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import device_setter
label_desc: Use image node_id 1 for calling the CreateLocalClusterBenchmark obj's underlying member method code with example usage: obj.benchmarkCreateLocalCluster() without return types