<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_paths(src):
 """ Generates root-to-leaf paths, given a treebank in string format. Note that get_path is an iterator and does not return all the paths simultaneously. :param src: str: treebank Examples: Get the sixth generated path: ['IP-MAT-SPE', 'IP-MAT-PRN', 'VBD', 'seyde'] """

    st = list()
    tmp = ''
    for let in src:
        if let == '(':
            if tmp != '':
                st.append(tmp)
                tmp = ''
        elif let == ')':
            if tmp != '':
                st.append(tmp)
                yield st
            st = st[:-1 - (tmp != '')]
            tmp = ''
        elif let == ' ':
            if tmp != '':
                st.append(tmp)
                tmp = ''
        else:
            tmp += let