keras/src/legacy/saving/serialization.py/SharedObjectLoadingScope/__enter__
class SharedObjectLoadingScope:    def __enter__(self):
        if _shared_object_disabled():
            return NoopLoadingScope()

        global SHARED_OBJECT_LOADING
        SHARED_OBJECT_LOADING.scope = self
        self._obj_ids_to_obj = {}
        return self