<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_packet_id(self, packet):
 """ Returns the ID of a protocol buffer packet. Returns None if no ID was found. """


        for p in self._packets:
            if isinstance(packet, p['cls']):
                return p['id']

        return None