code: def test_multiple_creation(self):
      feature_config = tpu_embedding_v2_utils.FeatureConfig(
          table=self.table_user, name="friends", max_sequence_length=2
      )
      optimizer = tpu_embedding_v2_utils.SGD(learning_rate=0.1)
      strategy = self._get_strategy()
      with strategy.scope():
          embedding_one = tpu_embedding_v2.TPUEmbedding(
              feature_config=feature_config, optimizer=optimizer
          )
          embedding_two = tpu_embedding_v2.TPUEmbedding(
              feature_config=feature_config, optimizer=optimizer
          )
  
      # The first TPU embedding should be able to be built.
      # The second one should fail with a runtime error indicating another TPU
      # embedding has already been initialized on TPU.
      embedding_one.build(64)
      with self.assertRaisesRegex(
          RuntimeError, "TPU is already initialized for embeddings."
      ):
          embedding_two.build(64)
  
file_path: tensorflow-upstream/tensorflow/python/tpu/tests/tpu_embedding_v2_initialization_test.py
imports: import numpy
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework.tensor_shape import TensorShape
  from tensorflow.python.ops import init_ops_v2
  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
label_desc: Use image node_id 2 for calling the TPUEmbeddingTest obj's underlying member method code with example usage: obj.test_multiple_creation() without return types