code: def test_serialize_custom_class_without_get_config_fails(self):
      with self.assertRaisesRegex(
          ValueError,
          "Cannot register a class that does not have a get_config.*",
      ):
  
          @object_registration.register_keras_serializable(
              "TestPackage", "TestClass"
          )
          class TestClass:
              def __init__(self, value):
                  self._value = value
  
file_path: keras/keras/saving/object_registration_test.py
imports: import keras
  from keras import testing
  from keras.saving import object_registration
  from keras.saving import serialization_lib
label_desc: Use image node_id 5 for calling the TestObjectRegistration obj's underlying member method code with example usage: obj.test_serialize_custom_class_without_get_config_fails() without return types