code: def _verifyClusterSpecEquality(self, cluster_spec, expected_proto):
      self.assertProtoEquals(
          expected_proto, cluster_spec.as_cluster_def()
      )
      self.assertProtoEquals(
          expected_proto,
          server_lib.ClusterSpec(cluster_spec).as_cluster_def(),
      )
      self.assertProtoEquals(
          expected_proto,
          server_lib.ClusterSpec(
              cluster_spec.as_cluster_def()
          ).as_cluster_def(),
      )
      self.assertProtoEquals(
          expected_proto,
          server_lib.ClusterSpec(
              cluster_spec.as_dict()
          ).as_cluster_def(),
      )
  
file_path: tensorflow-upstream/tensorflow/python/distribute/cluster_resolver/slurm_cluster_resolver_test.py
imports: import os
  from tensorflow.python.distribute.cluster_resolver.slurm_cluster_resolver import expand_hostlist
  from tensorflow.python.distribute.cluster_resolver.slurm_cluster_resolver import expand_tasks_per_node
  from tensorflow.python.distribute.cluster_resolver.slurm_cluster_resolver import SlurmClusterResolver
  from tensorflow.python.platform import test
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 3 for calling the SlurmClusterResolverTest obj's underlying member method code with example usage: obj._verifyClusterSpecEquality(cluster_spec, expected_proto) without return types