code: def test_unsupported_optimizer(self):
      with self.assertRaisesRegex(
          ValueError, "is an unsupported optimizer class."
      ):
          with self._get_strategy().scope():
              tpu_embedding_v2.TPUEmbedding(
                  self.feature_config,
                  tpu_embedding.AdagradParameters(learning_rate=0.1),
              )
  
imports: import functools
  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 backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import init_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.tpu import tpu_embedding
  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 1 for calling the TPUEmbeddingTest obj's underlying member method code with example usage: obj.test_unsupported_optimizer() without return types