<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reversed(self):
 """returns a copy of the Path object with its orientation reversed."""

        newpath = [seg.reversed() for seg in self]
        newpath.reverse()
        return Path(*newpath)