code: def test_same_config_different_instantiations(self):
      self.skip_if_oss()
      num_tables = 30
      table_dim = np.random.randint(1, 128, size=[num_tables])
      table_vocab_size = np.random.randint(100, 1000, size=[num_tables])
      table_names = ["table{}".format(i) for i in range(num_tables)]
      table_data = list(zip(table_dim, table_vocab_size, table_names))
      strategy = self._get_strategy()
  
      def tpu_embedding_config():
          feature_configs = []
          for dim, vocab, name in table_data:
              feature_configs.append(
                  tpu_embedding_v2_utils.FeatureConfig(
                      table=tpu_embedding_v2_utils.TableConfig(
                          vocabulary_size=int(vocab),
                          dim=int(dim),
                          initializer=init_ops_v2.Zeros(),
                          name=name,
                      )
                  )
              )
          optimizer = tpu_embedding_v2_utils.Adagrad(learning_rate=0.1)
          with strategy.scope():
              mid_level_api = tpu_embedding_v2.TPUEmbedding(
                  feature_config=feature_configs, optimizer=optimizer
              )
          mid_level_api._output_shapes = [TensorShape(128)] * len(
              feature_configs
          )
          return mid_level_api._create_config_proto()
  
      self.assertProtoEquals(
          tpu_embedding_config(), tpu_embedding_config()
      )
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework.tensor_shape import TensorShape
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops_v2
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
  from tensorflow.python.tpu import tpu_embedding_v2
  from tensorflow.python.tpu import tpu_embedding_v2_utils
  from tensorflow.python.tpu.tests import tpu_embedding_base_test
  from tensorflow.python.util import nest
label_desc: Use image node_id 5 for calling the TPUEmbeddingTest obj's underlying member method code with example usage: obj.test_same_config_different_instantiations() and returns: mid_level_api