<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strip_ansi(state):
 """Remove ANSI escape codes from student result."""

    stu_res = _strip_ansi(state.student_result)

    return state.to_child(student_result = stu_res)