class_docstr: Common tests for Sonnet optimizers.
code: def testUnsuppportedStrategyError(self):
      strategy = tf.distribute.MirroredStrategy()
      with strategy.scope():
          parameters = [tf.Variable(1.0)]
          updates = [tf.constant(0.1)]
          optimizer = self.make_optimizer()
          if is_tf_optimizer(optimizer):
              self.skipTest(
                  "TF optimizers aren't restricted to Sonnet strategies."
              )
      with self.assertRaisesRegex(
          ValueError,
          "Sonnet optimizers are not compatible with `MirroredStrategy`",
      ):
          strategy.run(lambda: optimizer.apply(updates, parameters))
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  from sonnet.src import base
  from sonnet.src import test_utils
  import tensorflow
  import tree
label_desc: Use image node_id 7 for calling the OptimizerTestBase obj's underlying member method code with example usage: obj.testUnsuppportedStrategyError() without return types