keras/src/saving/serialization_lib.py/ObjectSharingScope/__enter__
class ObjectSharingScope:    def __enter__(self):
        global_state.set_global_attribute("shared_objects/id_to_obj_map", {})
        global_state.set_global_attribute("shared_objects/id_to_config_map", {})