<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reverse(self, name, **kwargs):
 """ Reverse routing. '/users/1' """

        for p, n, _ in self.endpoints:
            if name == n:
                return p.format(**kwargs)