class_docstr: Test of base registry.Registry class.
class_docstr_tok: ["Test","of","base","registry.Registry","class","."]
code: def testTransformer(self):
      r = registry.Registry(
          "test_registry", value_transformer=lambda x, y: x + y()
      )
      r.register(3)(lambda: 5)
      r.register(10)(lambda: 12)
      self.assertEqual(r[3], 8)
      self.assertEqual(r[10], 22)
      self.assertEqual(set(r.values()), set((8, 22)))
      self.assertEqual(set(r.items()), set(((3, 8), (10, 22))))
  
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 7 for calling the RegistryClassTest obj's underlying member method code with example usage: obj.testTransformer() without return types