<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def todict(self):
 """Convert namedtuple to dict."""

        return OrderedDict((name, self[i]) for i, name in enumerate(self._fields))