<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def tuples(self, rlist):
 """ Converts a sequence of linear_index node labels into pegasus_index node labels, preserving order Parameters rlist : sequence of tuples The linear_index node labels Returns ------- qlist : iterable of ints The pegasus_index node lables corresponding to rlist """


        m, m1 = self.args
        for r in rlist:
            r, z = divmod(r, m1)
            r, k = divmod(r, 12)
            u, w = divmod(r, m)
            yield u, w, k, z