keras/src/backend/common/variables.py/AutocastScope/__exit__
class AutocastScope:    def __exit__(self, *args, **kwargs):
        global_state.set_global_attribute("autocast_scope", self.original_scope)