def get_saved_task_data(self, task):
if isinstance(task, int):<EOL><INDENT>task_number = str(task)<EOL><DEDENT>elif isinstance(task, str):<EOL><INDENT>task_number = task<EOL><DEDENT>else:<EOL><INDENT>task_number = task['<STR_LIT:id>']<EOL><DEDENT>task_data_key = self._task_data_key()<EOL>task_data = self.data.get(task_data_key, {})<EOL>_data = task_data.get(str(task_number), {})<EOL>task_data[str(task_number)] = _data<EOL>return _data<EOL>
Returns task data from local data.

        Args:
            task:
                `int`. Asana task number.