def restore(self, snapshot_id: str) -> bool: """ Restores the environment to a specific snapshot state. """ if snapshot_id not in self._snapshots: raise ValueError(f"Snapshot ID {snapshot_id} not found.")