code: def test_register_non_class_fails(self):
      obj = RegisteredClass()
      with self.assertRaisesRegex(TypeError, "must be a class"):
          registration.register_serializable()(obj)
  
imports: from absl.testing import parameterized
  from tensorflow.python.eager import test
  from tensorflow.python.saved_model import registration
  from tensorflow.python.trackable import base
label_desc: Use image node_id 5 for calling the SerializableRegistrationTest obj's underlying member method code with example usage: obj.test_register_non_class_fails() without return types