def METHOD_NAME(self, task):
    """Is the task finished?"""
    if task.task_info is None:
        return False
    result = task.task_info.get("is_finished", False)
    for subtask in six.itervalues(self.subtask_dict):
        result &= subtask.METHOD_NAME()
    return result