<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ip_path(self):
 """ Returns just the IPs from the traceroute. """

        r = []
        for hop in self.hops:
            r.append([packet.origin for packet in hop.packets])
        return r