<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def uid(self, p_todo):
 """ Returns the unique text-based ID for a todo item. """

        try:
            return self._todo_id_map[p_todo]
        except KeyError as ex:
            raise InvalidTodoException from ex