<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def thread2list(frame):
 """Return list with string frame representation of each frame of thread. """

    l = []
    while frame:
        l.insert(0, frame2string(frame))
        frame = frame.f_back
    return l