code: def testNamedRegistration(self):
      @registry.register_model("model2")
      class MyModel1(t2t_model.T2TModel):
          pass
  
      model = registry.model("model2")
      self.assertTrue(model is MyModel1)
  
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 ModelRegistryTest obj's underlying member method code with example usage: obj.testNamedRegistration() without return types