code: def testNormalClusterSpecRead(self):
      os.environ["SM_HOSTS"] = '["algo-1","algo-2"]'
      os.environ["SM_CURRENT_HOST"] = "algo-2"
  
      cluster_resolver = SageMakerClusterResolver()
      expected_proto = """
      job { name: 'worker' tasks { key: 0 value: 'algo-1:2223' }
                           tasks { key: 1 value: 'algo-2:2223' } }
      """
      actual_cluster_spec = cluster_resolver.cluster_spec()
      self._verifyClusterSpecEquality(
          actual_cluster_spec, expected_proto
      )
  
file_path: tensorflow-upstream/tensorflow/python/distribute/cluster_resolver/sagemaker_cluster_resolver_test.py
imports: import os
  from tensorflow.python.distribute.cluster_resolver.sagemaker_cluster_resolver import SageMakerClusterResolver
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 2 for calling the SageMakerClusterResolverTest obj's underlying member method code with example usage: obj.testNormalClusterSpecRead() without return types