def switch_to_task(self, task_name):
    '\n        Switches to a task which was previously added.\n        '
    if (task_name not in self._task_specific_attributes):
        log.error('Provided `%s` does not exist in the model. Consider calling `add_and_switch_to_new_task` first.', task_name)
    else:
        self._current_task = task_name
Switches to a task which was previously added.
def switch_to_task(self, task_name):
    '\n        \n        '
    if (task_name not in self._task_specific_attributes):
        log.error('Provided `%s` does not exist in the model. Consider calling `add_and_switch_to_new_task` first.', task_name)
    else:
        self._current_task = task_name