<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def command(state, args):
 """Reset anime watched episodes."""

    args = parser.parse_args(args[1:])
    aid = state.results.parse_aid(args.aid, default_key='db')
    query.update.reset(state.db, aid, args.episode)