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(),
      )
  
imports: from tensorflow.python.client import session
  from tensorflow.python.distribute.cluster_resolver import cluster_resolver
  from tensorflow.python.eager import context
  from tensorflow.python.framework import config
  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 1 for calling the UnionClusterResolverTest obj's underlying member method code with example usage: obj._verifyClusterSpecEquality(cluster_spec, expected_proto) without return types