code: def testMembership(self):
      @registry.register_optimizer
      def my_optimizer(learning_rate, hparams):
          return 3
  
      @registry.register_optimizer("my_other_optimizer")
      def another_optimizer(learning_rate, hparams):
          return 5
  
      self.assertTrue("my_optimizer" in registry.Registries.optimizers)
      self.assertTrue(
          "my_other_optimizer" in registry.Registries.optimizers
      )
      self.assertFalse(
          "another_optimizer" in registry.Registries.optimizers
      )
      self.assertEqual(len(registry.Registries.optimizers), 2)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.utils import registry
  from tensor2tensor.utils import t2t_model
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the OptimizerRegistryTest obj's underlying member method code with example usage: obj.testMembership() and returns: int, int