def METHOD_NAME(self, id, polling_interval: float = 10):
    """
    Waits until experiment is finished or failed
    :param id: submarine experiment id
    :param polling_interval: How often to poll for the status of the experiment.
    :return: str: experiment logs
    """
    index = 0
    while True:
        status = self.get_experiment(id)["status"]
        if status == "Succeeded" or status == "Deleted":
            self._log_pod(id, index)
            break
        index = self._log_pod(id, index)
        time.sleep(polling_interval)