code: def testClusterResolverProperty(self):
      cluster_spec = (
          self._cluster.cluster_resolver.cluster_spec().as_dict()
      )
  
      self.assertEqual(len(cluster_spec["worker"]), 2)
      self.assertEqual(len(cluster_spec["ps"]), 1)
      self.assertEqual(len(cluster_spec["chief"]), 1)
  
file_path: tensorflow/tensorflow/python/distribute/multi_worker_test_base_test.py
imports: from tensorflow.python.distribute import multi_process_runner
  from tensorflow.python.distribute import multi_worker_test_base
  from tensorflow.python.eager import context
  from tensorflow.python.eager import remote
  from tensorflow.python.eager import test
label_desc: Use image node_id 5 for calling the MultiProcessClusterTest obj's underlying member method code with example usage: obj.testClusterResolverProperty() without return types